gitea

Зеркало из https://github.com/go-gitea/gitea
Форк
0
/
latest_commit.tmpl 
31 строка · 2.3 Кб
1
{{if not .LatestCommit}}
2
	<div class="ui active tiny slow centered inline">…</div>
3
{{else}}
4
	{{if .LatestCommitUser}}
5
		{{ctx.AvatarUtils.Avatar .LatestCommitUser 24 "tw-mr-1"}}
6
		{{if and .LatestCommitUser.FullName DefaultShowFullName}}
7
			<a class="muted author-wrapper" title="{{.LatestCommitUser.FullName}}" href="{{.LatestCommitUser.HomeLink}}"><strong>{{.LatestCommitUser.FullName}}</strong></a>
8
		{{else}}
9
			<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>
10
		{{end}}
11
	{{else}}
12
		{{if .LatestCommit.Author}}
13
			{{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24 "tw-mr-1"}}
14
			<span class="author-wrapper" title="{{.LatestCommit.Author.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></span>
15
		{{end}}
16
	{{end}}
17
	<a rel="nofollow" class="ui sha label {{if .LatestCommit.Signature}} isSigned {{if .LatestCommitVerification.Verified}} isVerified{{if eq .LatestCommitVerification.TrustStatus "trusted"}}{{else if eq .LatestCommitVerification.TrustStatus "untrusted"}}Untrusted{{else}}Unmatched{{end}}{{else if .LatestCommitVerification.Warning}} isWarning{{end}}{{end}}" href="{{.RepoLink}}/commit/{{PathEscape .LatestCommit.ID.String}}">
18
		<span class="shortsha">{{ShortSha .LatestCommit.ID.String}}</span>
19
		{{if .LatestCommit.Signature}}
20
			{{template "repo/shabox_badge" dict "root" $ "verification" .LatestCommitVerification}}
21
		{{end}}
22
	</a>
23
	{{template "repo/commit_statuses" dict "Status" .LatestCommitStatus "Statuses" .LatestCommitStatuses}}
24
	{{$commitLink:= printf "%s/commit/%s" .RepoLink (PathEscape .LatestCommit.ID.String)}}
25
	<span class="grey commit-summary" title="{{.LatestCommit.Summary}}"><span class="message-wrapper">{{RenderCommitMessageLinkSubject $.Context .LatestCommit.Message $commitLink ($.Repository.ComposeMetas ctx)}}</span>
26
		{{if IsMultilineCommitMessage .LatestCommit.Message}}
27
			<button class="ui button js-toggle-commit-body ellipsis-button" aria-expanded="false">...</button>
28
			<pre class="commit-body tw-hidden">{{RenderCommitBody $.Context .LatestCommit.Message ($.Repository.ComposeMetas ctx)}}</pre>
29
		{{end}}
30
	</span>
31
{{end}}
32

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.