From c0951fe0e3b4dea38064515546b1825c1bcf19e1 Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Tue, 21 May 2019 16:10:27 +0000 Subject: [PATCH] Move note bubble inside the commit bubble --- templates/repo/diff/page.tmpl | 48 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) 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" .}}