|
80 | 80 | {{end}} |
81 | 81 | </div> |
82 | 82 | {{if or (eq .GetOpType 5) (eq .GetOpType 18)}} |
83 | | - <div class="gt-pl-5"> |
84 | | - {{$push := ActionContent2Commits .}} |
85 | | - {{$repoLink := .GetRepoLink}} |
86 | | - {{range $push.Commits}} |
87 | | - {{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}} |
88 | | - <div class="flex-item"> |
89 | | - <img class="ui avatar" src="{{$push.AvatarLink $.Context .AuthorEmail}}" title="{{.AuthorName}}" width="16" height="16"> |
90 | | - <a class="commit-id" href="{{$commitLink}}">{{ShortSha .Sha1}}</a> |
91 | | - <span class="text truncate light grey"> |
92 | | - {{RenderCommitMessage $.Context .Message $repoLink $.ComposeMetas}} |
93 | | - </span> |
94 | | - </div> |
95 | | - {{end}} |
96 | | - {{if and (gt $push.Len 1) $push.CompareURL}} |
97 | | - <div class="flex-item"> |
98 | | - <a href="{{AppSubUrl}}/{{$push.CompareURL}}">{{$.locale.Tr "action.compare_commits" $push.Len}} »</a> |
99 | | - </div> |
100 | | - {{end}} |
101 | | - </div> |
| 83 | + {{$push := ActionContent2Commits .}} |
| 84 | + {{$repoLink := .GetRepoLink}} |
| 85 | + {{range $push.Commits}} |
| 86 | + {{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}} |
| 87 | + <div class="flex-text-block"> |
| 88 | + <img class="ui avatar" src="{{$push.AvatarLink $.Context .AuthorEmail}}" title="{{.AuthorName}}" width="16" height="16"> |
| 89 | + <a class="gt-mono" href="{{$commitLink}}">{{ShortSha .Sha1}}</a> |
| 90 | + <span class="text truncate light grey"> |
| 91 | + {{RenderCommitMessage $.Context .Message $repoLink $.ComposeMetas}} |
| 92 | + </span> |
| 93 | + </div> |
| 94 | + {{end}} |
| 95 | + {{if and (gt $push.Len 1) $push.CompareURL}} |
| 96 | + <a href="{{AppSubUrl}}/{{$push.CompareURL}}">{{$.locale.Tr "action.compare_commits" $push.Len}} »</a> |
| 97 | + {{end}} |
102 | 98 | {{else if eq .GetOpType 6}} |
103 | 99 | <span class="text truncate issue title">{{index .GetIssueInfos 1 | RenderEmoji $.Context | RenderCodeBlock}}</span> |
104 | 100 | {{else if eq .GetOpType 7}} |
|
0 commit comments