|
13 | 13 | {{if IsMultilineCommitMessage .Commit.Message}}
|
14 | 14 | <pre class="commit-body">{{RenderCommitBody .Commit.Message $.RepoLink $.Repository.ComposeMetas}}</pre>
|
15 | 15 | {{end}}
|
16 |
| - {{if .Note}} |
17 |
| - <div class="ui top attached info clearing segment"> |
18 |
| - <h3>{{.i18n.Tr "repo.diff.git-notes"}}</h3> |
19 |
| - <pre class="commit-body">{{RenderNote .Note $.RepoLink $.Repository.ComposeMetas}}</pre> |
20 |
| - </div> |
21 |
| - <div class="ui bottom attached info segment"> |
22 |
| - <div class="ui stackable grid"> |
23 |
| - <div class="nine wide column"> |
24 |
| - {{if .NoteAuthor}} |
25 |
| - <img class="ui avatar image" src="{{.NoteAuthor.RelAvatarLink}}" /> |
26 |
| - {{if .NoteAuthor.FullName}} |
27 |
| - <a href="{{.NoteAuthor.HomeLink}}"><strong>{{.NoteAuthor.FullName}}</strong></a> |
28 |
| - {{else}} |
29 |
| - <a href="{{.NoteAuthor.HomeLink}}"><strong>{{.NoteCommit.Author.Name}}</strong></a> |
30 |
| - {{end}} |
31 |
| - {{else}} |
32 |
| - <img class="ui avatar image" src="{{AvatarLink .NoteCommit.Author.Email}}" /> |
33 |
| - <strong>{{.NoteCommit.Author.Name}}</strong> |
34 |
| - {{end}} |
35 |
| - <span class="text grey" id="note-authored-time">{{TimeSince .NoteCommit.Author.When $.Lang}}</span> |
36 |
| - </div> |
37 |
| - </div><!-- end grid --> |
38 |
| - </div> |
39 |
| - {{end}} |
40 | 16 | <span class="text grey"><i class="octicon octicon-git-branch"></i>{{.BranchName}}</span>
|
41 | 17 | </div>
|
42 | 18 | <div class="ui attached info segment {{if .Commit.Signature}} isSigned {{if .Verification.Verified }} isVerified {{end}}{{end}}">
|
|
89 | 65 | </div>
|
90 | 66 | {{end}}
|
91 | 67 | {{end}}
|
| 68 | + {{if .Note}} |
| 69 | + <div class="ui top attached info clearing segment"> |
| 70 | + <h3>{{.i18n.Tr "repo.diff.git-notes"}}</h3> |
| 71 | + <pre class="commit-body">{{RenderNote .Note $.RepoLink $.Repository.ComposeMetas}}</pre> |
| 72 | + </div> |
| 73 | + <div class="ui bottom attached info segment"> |
| 74 | + <div class="ui stackable grid"> |
| 75 | + <div class="nine wide column"> |
| 76 | + {{if .NoteAuthor}} |
| 77 | + <img class="ui avatar image" src="{{.NoteAuthor.RelAvatarLink}}" /> |
| 78 | + {{if .NoteAuthor.FullName}} |
| 79 | + <a href="{{.NoteAuthor.HomeLink}}"><strong>{{.NoteAuthor.FullName}}</strong></a> |
| 80 | + {{else}} |
| 81 | + <a href="{{.NoteAuthor.HomeLink}}"><strong>{{.NoteCommit.Author.Name}}</strong></a> |
| 82 | + {{end}} |
| 83 | + {{else}} |
| 84 | + <img class="ui avatar image" src="{{AvatarLink .NoteCommit.Author.Email}}" /> |
| 85 | + <strong>{{.NoteCommit.Author.Name}}</strong> |
| 86 | + {{end}} |
| 87 | + <span class="text grey" id="note-authored-time">{{TimeSince .NoteCommit.Author.When $.Lang}}</span> |
| 88 | + </div> |
| 89 | + </div><!-- end grid --> |
| 90 | + </div> |
| 91 | + {{end}} |
92 | 92 | {{end}}
|
93 | 93 |
|
94 | 94 | {{template "repo/diff/box" .}}
|
|
0 commit comments