@ -17,8 +17,8 @@
{{ $ class = ( printf "%s%s" $ class " isWarning" ) }}
{{ $ class = ( printf "%s%s" $ class " isWarning" ) }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
<div class="ui top attached header clearing segment pr {{ $ class }} ">
<div class="ui top attached header clearing segment pr commit-header {{ $ class }} ">
<div class="df mb-4">
<div class="df mb-4 fw ">
<h3 class="mb-0 f1"><span class="commit-summary" title=" {{ .Commit .Summary }} "> {{ RenderCommitMessage $ .Context .Commit .Message $ .RepoLink $ .Repository .ComposeMetas }} </span> {{ template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses "root" $ }} </h3>
<h3 class="mb-0 f1"><span class="commit-summary" title=" {{ .Commit .Summary }} "> {{ RenderCommitMessage $ .Context .Commit .Message $ .RepoLink $ .Repository .ComposeMetas }} </span> {{ template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses "root" $ }} </h3>
{{ if not $ .PageIsWiki }}
{{ if not $ .PageIsWiki }}
<div class="ui">
<div class="ui">
@ -143,8 +143,8 @@
<span class="text grey mr-3"> {{ svg "octicon-tag" 1 6 "mr-2" }} {{ .TagName }} </span>
<span class="text grey mr-3"> {{ svg "octicon-tag" 1 6 "mr-2" }} {{ .TagName }} </span>
{{ end }}
{{ end }}
</div>
</div>
<div class="ui attached segment df ac sb py-2 commit-header-row {{ $ class }} ">
<div class="ui attached segment df ac sb py-2 commit-header-row fw {{ $ class }} ">
<div class="df ac">
<div class="df ac author ">
{{ if .Author }}
{{ if .Author }}
{{ avatar .Author 2 8 "mr-3" }}
{{ avatar .Author 2 8 "mr-3" }}
{{ if .Author .FullName }}
{{ if .Author .FullName }}
@ -171,9 +171,7 @@
<div class="ui horizontal list df ac">
<div class="ui horizontal list df ac">
{{ if .Parents }}
{{ if .Parents }}
<div class="item">
<div class="item">
{{ .i18n .Tr "repo.diff.parent" }}
<span> {{ .i18n .Tr "repo.diff.parent" }} </span>
</div>
<div class="item">
{{ range .Parents }}
{{ range .Parents }}
{{ if $ .PageIsWiki }}
{{ if $ .PageIsWiki }}
<a class="ui blue sha label" href=" {{ $ .RepoLink }} /wiki/commit/ {{ PathEscape . }} "> {{ ShortSha . }} </a>
<a class="ui blue sha label" href=" {{ $ .RepoLink }} /wiki/commit/ {{ PathEscape . }} "> {{ ShortSha . }} </a>
@ -183,13 +181,14 @@
{{ end }}
{{ end }}
</div>
</div>
{{ end }}
{{ end }}
<div class="mobile-only"></div>
<div class="item">
<div class="item"> {{ .i18n .Tr "repo.diff.commit" }} </div>
<span> {{ .i18n .Tr "repo.diff.commit" }} </span>
<div class="item"><span class="ui blue sha label"> {{ ShortSha .CommitID }} </span></div>
<span class="ui blue sha label"> {{ ShortSha .CommitID }} </span>
</div>
</div>
</div>
</div>
</div>
{{ if .Commit .Signature }}
{{ if .Commit .Signature }}
<div class="ui bottom attached message tl df ac sb commit-header-row {{ $ class }} ">
<div class="ui bottom attached message tl df ac sb commit-header-row fw {{ $ class }} ">
<div class="df ac">
<div class="df ac">
{{ if .Verification .Verified }}
{{ if .Verification .Verified }}
{{ if ne .Verification .SigningUser .ID 0 }}
{{ if ne .Verification .SigningUser .ID 0 }}
@ -204,8 +203,8 @@
{{ avatar .Verification .SigningUser 2 8 }}
{{ avatar .Verification .SigningUser 2 8 }}
<a href=" {{ .Verification .SigningUser .HomeLink }} "><strong> {{ .Verification .SigningUser .GetDisplayName }} </strong></a>
<a href=" {{ .Verification .SigningUser .HomeLink }} "><strong> {{ .Verification .SigningUser .GetDisplayName }} </strong></a>
{{ else }}
{{ else }}
<span title=" {{ .i18n .Tr "gpg.default_key" }} "> {{ svg "gitea-lock-cog" }} </span>
<span title=" {{ .i18n .Tr "gpg.default_key" }} "> {{ svg "gitea-lock-cog" 1 6 "mr-3" }} </span>
<span class="ui text"> {{ .i18n .Tr "repo.commits.signed_by" }} :</span>
<span class="ui text mr-3 "> {{ .i18n .Tr "repo.commits.signed_by" }} :</span>
{{ avatarByEmail .Verification .SigningEmail "" 2 8 }}
{{ avatarByEmail .Verification .SigningEmail "" 2 8 }}
<strong> {{ .Verification .SigningUser .GetDisplayName }} </strong>
<strong> {{ .Verification .SigningUser .GetDisplayName }} </strong>
{{ end }}
{{ end }}