diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index f85482182791..534520d2d2e0 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1651,6 +1651,7 @@ diff.review.placeholder = Review comment diff.review.comment = Comment diff.review.approve = Approve diff.review.reject = Request changes +diff.committed_by = committed by releases.desc = Track project versions and downloads. release.releases = Releases diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index 7a91663ec830..7a967ee55e53 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -33,7 +33,7 @@
-
+
{{if .Author}} {{if .Author.FullName}} @@ -45,19 +45,22 @@ {{.Commit.Author.Name}} {{end}} - {{if or (ne .Commit.Committer.Name .Commit.Author.Name) (ne .Commit.Committer.Email .Commit.Author.Email)}} - - {{if ne .Verification.CommittingUser.ID 0}} - - {{.Commit.Committer.Name}} <{{.Commit.Committer.Email}}> - {{else}} - - {{.Commit.Committer.Name}} - {{end}} - {{end}} {{TimeSince .Commit.Author.When $.Lang}} + {{if or (ne .Commit.Committer.Name .Commit.Author.Name) (ne .Commit.Committer.Email .Commit.Author.Email)}} +
+ {{svg "octicon-git-commit" 16}}{{.i18n.Tr "repo.diff.committed_by"}} + {{if ne .Verification.CommittingUser.ID 0}} + + {{.Commit.Committer.Name}} <{{.Commit.Committer.Email}}> + {{else}} + + {{.Commit.Committer.Name}} + {{end}} +
+ {{end}} +
-
+
{{if .Parents}}
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index b387d160796f..96e381c163db 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -2376,6 +2376,24 @@ } } } + + &.diff .committed-by { + padding-top: .5rem; + + .ui.avatar { + width: 20px; + height: 20px; + } + + span { + margin-right: .25rem; + + svg { + vertical-align: text-bottom; + margin-right: 2px; + } + } + } } // End of .repository