|
17 | 17 | {{$class = (printf "%s%s" $class " isWarning")}} |
18 | 18 | {{end}} |
19 | 19 | {{end}} |
20 | | - <div class="ui top attached header clearing segment pr {{$class}}"> |
21 | | - <div class="df mb-4"> |
| 20 | + <div class="ui top attached header clearing segment pr commit-header {{$class}}"> |
| 21 | + <div class="df mb-4 fw"> |
22 | 22 | <h3 class="mb-0 f1"><span class="commit-summary" title="{{.Commit.Summary}}">{{RenderCommitMessage $.Context .Commit.Message $.RepoLink $.Repository.ComposeMetas}}</span>{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses "root" $}}</h3> |
23 | 23 | {{if not $.PageIsWiki}} |
24 | 24 | <div class="ui"> |
|
143 | 143 | <span class="text grey mr-3">{{svg "octicon-tag" 16 "mr-2"}}{{.TagName}}</span> |
144 | 144 | {{end}} |
145 | 145 | </div> |
146 | | - <div class="ui attached segment df ac sb py-2 commit-header-row {{$class}}"> |
147 | | - <div class="df ac"> |
| 146 | + <div class="ui attached segment df ac sb py-2 commit-header-row fw {{$class}}"> |
| 147 | + <div class="df ac author"> |
148 | 148 | {{if .Author}} |
149 | 149 | {{avatar .Author 28 "mr-3"}} |
150 | 150 | {{if .Author.FullName}} |
|
171 | 171 | <div class="ui horizontal list df ac"> |
172 | 172 | {{if .Parents}} |
173 | 173 | <div class="item"> |
174 | | - {{.i18n.Tr "repo.diff.parent"}} |
175 | | - </div> |
176 | | - <div class="item"> |
| 174 | + <span>{{.i18n.Tr "repo.diff.parent"}}</span> |
177 | 175 | {{range .Parents}} |
178 | 176 | {{if $.PageIsWiki}} |
179 | 177 | <a class="ui blue sha label" href="{{$.RepoLink}}/wiki/commit/{{PathEscape .}}">{{ShortSha .}}</a> |
|
183 | 181 | {{end}} |
184 | 182 | </div> |
185 | 183 | {{end}} |
186 | | - <div class="mobile-only"></div> |
187 | | - <div class="item">{{.i18n.Tr "repo.diff.commit"}}</div> |
188 | | - <div class="item"><span class="ui blue sha label">{{ShortSha .CommitID}}</span></div> |
| 184 | + <div class="item"> |
| 185 | + <span>{{.i18n.Tr "repo.diff.commit"}}</span> |
| 186 | + <span class="ui blue sha label">{{ShortSha .CommitID}}</span> |
| 187 | + </div> |
189 | 188 | </div> |
190 | 189 | </div> |
191 | 190 | {{if .Commit.Signature}} |
192 | | - <div class="ui bottom attached message tl df ac sb commit-header-row {{$class}}"> |
| 191 | + <div class="ui bottom attached message tl df ac sb commit-header-row fw {{$class}}"> |
193 | 192 | <div class="df ac"> |
194 | 193 | {{if .Verification.Verified}} |
195 | 194 | {{if ne .Verification.SigningUser.ID 0}} |
|
204 | 203 | {{avatar .Verification.SigningUser 28}} |
205 | 204 | <a href="{{.Verification.SigningUser.HomeLink}}"><strong>{{.Verification.SigningUser.GetDisplayName}}</strong></a> |
206 | 205 | {{else}} |
207 | | - <span title="{{.i18n.Tr "gpg.default_key"}}">{{svg "gitea-lock-cog"}}</span> |
208 | | - <span class="ui text">{{.i18n.Tr "repo.commits.signed_by"}}:</span> |
| 206 | + <span title="{{.i18n.Tr "gpg.default_key"}}">{{svg "gitea-lock-cog" 16 "mr-3"}}</span> |
| 207 | + <span class="ui text mr-3">{{.i18n.Tr "repo.commits.signed_by"}}:</span> |
209 | 208 | {{avatarByEmail .Verification.SigningEmail "" 28}} |
210 | 209 | <strong>{{.Verification.SigningUser.GetDisplayName}}</strong> |
211 | 210 | {{end}} |
|
0 commit comments