 37d566bdb0
			
		
	
	
	37d566bdb0
	
	
	
		
			
			Old activities are shown like before, new commits are displayed like commits in e.g. the commits list. _(Second commit)_ | New signed commits | Old (signed) commits | |:--:|:--:| |  |  | Additionally the sha box was moved in an own component to unify the usage. _(First commit)_ Closes #1824 <!--start release-notes-assistant--> ## Release notes <!--URL:https://codeberg.org/forgejo/forgejo--> - User Interface features - [PR](https://codeberg.org/forgejo/forgejo/pulls/6933): <!--number 6933 --><!--line 0 --><!--description U2hvdyBpZiBjb21taXQgaXMgdmVyaWZpZWQgaW4gYWN0aXZpdHkgZmVlZCBvZiBhbiB1c2VyIG9yIGFuIG9yZ2FuaXphdGlvbiBmb3IgbmV3IGFjdGl2aXR5-->Show if commit is verified in activity feed of an user or an organization for new activity<!--description--> <!--end release-notes-assistant--> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6933 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Beowulf <beowulf@beocode.eu> Co-committed-by: Beowulf <beowulf@beocode.eu>
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			1.9 KiB
		
	
	
	
		
			Go HTML Template
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			1.9 KiB
		
	
	
	
		
			Go HTML Template
		
	
	
	
	
	
| {{if not .LatestCommit}}
 | |
| 	<div class="ui active tiny slow centered inline">…</div>
 | |
| {{else}}
 | |
| 	{{if .LatestCommitUser}}
 | |
| 		{{ctx.AvatarUtils.Avatar .LatestCommitUser 24 "tw-mr-2"}}
 | |
| 		{{if and .LatestCommitUser.FullName DefaultShowFullName}}
 | |
| 			<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}}
 | |
| 			{{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24 "tw-mr-2"}}
 | |
| 			<span class="author-wrapper" title="{{.LatestCommit.Author.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></span>
 | |
| 		{{end}}
 | |
| 	{{end}}
 | |
| 	{{template "repo/shabox" (dict
 | |
| 		"sha1" .LatestCommit.ID.String
 | |
| 		"commitLink" (printf "%s/commit/%s" .RepoLink (.LatestCommit.ID.String|PathEscape))
 | |
| 		"signature" .LatestCommit.Signature
 | |
| 		"verification" .LatestCommitVerification
 | |
| 	)}}
 | |
| 	{{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>
 | |
| 			<pre class="commit-body tw-hidden">{{RenderCommitBody $.Context .LatestCommit.Message ($.Repository.ComposeMetas ctx)}}</pre>
 | |
| 		{{end}}
 | |
| 	</span>
 | |
| {{end}}
 |