|
13 | 13 | {{range $r}}
|
14 | 14 | <tr>
|
15 | 15 | <td class="author">
|
16 |
| - {{$userName := .Author.Name}} |
| 16 | + {{$userName := .Author.Name}} |
17 | 17 | {{if .User}}
|
18 | 18 | {{if .User.FullName}}
|
19 |
| - {{$userName = .User.FullName}} |
| 19 | + {{$userName = .User.FullName}} |
20 | 20 | {{end}}
|
21 |
| - <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/> <a href="{{AppSubUrl}}/{{.User.Name}}">{{$userName}}</a> |
| 21 | + <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/> <a href="{{AppSubUrl}}/{{.User.Name}}">{{$userName}}</a> |
22 | 22 | {{else}}
|
23 | 23 | <img class="ui avatar image" src="{{AvatarLink .Author.Email}}" alt=""/> {{$userName}}
|
24 | 24 | {{end}}
|
25 | 25 | </td>
|
26 | 26 | <td class="sha">
|
27 |
| - {{$class := "ui sha label"}} |
28 |
| - {{if .Signature}} |
29 |
| - {{$class = (printf "%s%s" $class " isSigned")}} |
30 |
| - {{if .Verification.Verified}} |
31 |
| - {{$class = (printf "%s%s" $class " isVerified")}} |
32 |
| - {{else if .Verification.Warning}} |
33 |
| - {{$class = (printf "%s%s" $class " isWarning")}} |
34 |
| - {{end}} |
35 |
| - {{end}} |
36 |
| - {{if $.Reponame}} |
37 |
| - <a href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}" rel="nofollow" class="{{$class}}"> |
38 |
| - {{else}} |
39 |
| - <span class="{{$class}}"> |
40 |
| - {{end}} |
| 27 | + {{$class := "ui sha label"}} |
| 28 | + {{if .Signature}} |
| 29 | + {{$class = (printf "%s%s" $class " isSigned")}} |
| 30 | + {{if .Verification.Verified}} |
| 31 | + {{$class = (printf "%s%s" $class " isVerified")}} |
| 32 | + {{else if .Verification.Warning}} |
| 33 | + {{$class = (printf "%s%s" $class " isWarning")}} |
| 34 | + {{end}} |
| 35 | + {{end}} |
| 36 | + {{if $.Reponame}} |
| 37 | + <a href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}" rel="nofollow" class="{{$class}}"> |
| 38 | + {{else}} |
| 39 | + <span class="{{$class}}"> |
| 40 | + {{end}} |
41 | 41 | {{ShortSha .ID.String}}
|
42 | 42 | {{if .Signature}}
|
43 | 43 | <div class="ui detail icon button">
|
44 | 44 | {{if .Verification.Verified}}
|
45 |
| - <i title="{{.Verification.Reason}}" class="lock green icon"></i> |
46 | 45 | {{if ne .Verification.SigningUser.ID 0}}
|
47 |
| - <i title="{{.Verification.Reason}}" class="lock green icon"></i> |
48 |
| - {{else}} |
49 |
| - <i title="{{.Verification.Reason}}" class="icons"> |
50 |
| - <i class="green lock icon"></i> |
51 |
| - <i class="tiny inverted cog icon centerlock"></i> |
52 |
| - </i> |
53 |
| - {{end}} |
| 46 | + <i title="{{.Verification.Reason}}" class="lock green icon"></i> |
| 47 | + {{else}} |
| 48 | + <i title="{{.Verification.Reason}}" class="icons"> |
| 49 | + <i class="green lock icon"></i> |
| 50 | + <i class="tiny inverted cog icon centerlock"></i> |
| 51 | + </i> |
| 52 | + {{end}} |
54 | 53 | {{else if .Verification.Warning}}
|
55 |
| - <i title="{{$.i18n.Tr .Verification.Reason}}" class="red unlock icon"></i> |
56 |
| - {{else}} |
| 54 | + <i title="{{$.i18n.Tr .Verification.Reason}}" class="red unlock icon"></i> |
| 55 | + {{else}} |
57 | 56 | <i title="{{$.i18n.Tr .Verification.Reason}}" class="unlock icon"></i>
|
58 | 57 | {{end}}
|
59 | 58 | </div>
|
60 | 59 | {{end}}
|
61 |
| - {{if $.Reponame}} |
62 |
| - </a> |
63 |
| - {{else}} |
64 |
| - </span> |
65 |
| - {{end}} |
| 60 | + {{if $.Reponame}} |
| 61 | + </a> |
| 62 | + {{else}} |
| 63 | + </span> |
| 64 | + {{end}} |
66 | 65 | </td>
|
67 | 66 | <td class="message">
|
68 | 67 | <span class="message-wrapper">
|
|
73 | 72 | <button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>
|
74 | 73 | {{end}}
|
75 | 74 | {{if eq (CommitType .) "SignCommitWithStatuses"}}
|
76 |
| - {{template "repo/commit_status" .Status}} |
| 75 | + {{template "repo/commit_status" .Status}} |
77 | 76 | {{end}}
|
78 | 77 | {{if IsMultilineCommitMessage .Message}}
|
79 | 78 | <pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $.RepoLink $.Repository.ComposeMetas}}</pre>
|
|
0 commit comments