diff --git a/templates/repo/diff/page.tmpl b/templates/repo/diff/page.tmpl index 9fee2b3221..e0c38816c0 100644 --- a/templates/repo/diff/page.tmpl +++ b/templates/repo/diff/page.tmpl @@ -13,6 +13,30 @@ {{if IsMultilineCommitMessage .Commit.Message}}
{{RenderCommitBody .Commit.Message $.RepoLink $.Repository.ComposeMetas}}
{{end}} + {{if .Note}} +
+

{{.i18n.Tr "repo.diff.git-notes"}}

+
{{RenderNote .Note $.RepoLink $.Repository.ComposeMetas}}
+
+
+
+
+ {{if .NoteAuthor}} + + {{if .NoteAuthor.FullName}} + {{.NoteAuthor.FullName}} + {{else}} + {{.NoteCommit.Author.Name}} + {{end}} + {{else}} + + {{.NoteCommit.Author.Name}} + {{end}} + {{TimeSince .NoteCommit.Author.When $.Lang}} +
+
+
+ {{end}} {{.BranchName}}
@@ -65,30 +89,6 @@
{{end}} {{end}} - {{if .Note}} -
-

{{.i18n.Tr "repo.diff.git-notes"}}

-
{{RenderNote .Note $.RepoLink $.Repository.ComposeMetas}}
-
-
-
-
- {{if .NoteAuthor}} - - {{if .NoteAuthor.FullName}} - {{.NoteAuthor.FullName}} - {{else}} - {{.NoteCommit.Author.Name}} - {{end}} - {{else}} - - {{.NoteCommit.Author.Name}} - {{end}} - {{TimeSince .NoteCommit.Author.When $.Lang}} -
-
-
- {{end}} {{end}} {{template "repo/diff/box" .}}