2024-01-15 17:42:15 +01:00
|
|
|
{{if not .LatestCommit}}
|
|
|
|
<div class="ui active tiny slow centered inline">…</div>
|
|
|
|
{{else}}
|
|
|
|
{{if .LatestCommitUser}}
|
2024-08-14 17:19:03 +02:00
|
|
|
{{ctx.AvatarUtils.Avatar .LatestCommitUser 24 "tw-mr-2"}}
|
2024-03-29 04:15:39 +09:00
|
|
|
{{if and .LatestCommitUser.FullName DefaultShowFullName}}
|
2024-01-15 17:42:15 +01:00
|
|
|
<a class="muted author-wrapper" title="{{.LatestCommitUser.FullName}}" href="{{.LatestCommitUser.HomeLink}}"><strong>{{.LatestCommitUser.FullName}}</strong></a>
|
|
|
|
{{else}}
|
|
|
|
<a class="muted author-wrapper" title="{{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}" href="{{.LatestCommitUser.HomeLink}}"><strong>{{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}</strong></a>
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
{{if .LatestCommit.Author}}
|
2024-08-14 17:19:03 +02:00
|
|
|
{{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24 "tw-mr-2"}}
|
2024-01-15 17:42:15 +01:00
|
|
|
<span class="author-wrapper" title="{{.LatestCommit.Author.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2025-05-03 10:54:52 +00:00
|
|
|
{{template "repo/shabox" (dict
|
|
|
|
"sha1" .LatestCommit.ID.String
|
|
|
|
"commitLink" (printf "%s/commit/%s" .RepoLink (.LatestCommit.ID.String|PathEscape))
|
|
|
|
"signature" .LatestCommit.Signature
|
|
|
|
"verification" .LatestCommitVerification
|
|
|
|
)}}
|
2024-01-15 17:42:15 +01:00
|
|
|
{{template "repo/commit_statuses" dict "Status" .LatestCommitStatus "Statuses" .LatestCommitStatuses}}
|
|
|
|
{{$commitLink:= printf "%s/commit/%s" .RepoLink (PathEscape .LatestCommit.ID.String)}}
|
|
|
|
<span class="grey commit-summary" title="{{.LatestCommit.Summary}}"><span class="message-wrapper">{{RenderCommitMessageLinkSubject $.Context .LatestCommit.Message $commitLink ($.Repository.ComposeMetas ctx)}}</span>
|
|
|
|
{{if IsMultilineCommitMessage .LatestCommit.Message}}
|
|
|
|
<button class="ui button js-toggle-commit-body ellipsis-button" aria-expanded="false">...</button>
|
2024-03-24 19:23:38 +01:00
|
|
|
<pre class="commit-body tw-hidden">{{RenderCommitBody $.Context .LatestCommit.Message ($.Repository.ComposeMetas ctx)}}</pre>
|
2024-01-15 17:42:15 +01:00
|
|
|
{{end}}
|
|
|
|
</span>
|
|
|
|
{{end}}
|