2020-11-08 17:21:54 +00:00
|
|
|
<div id="rev-container">
|
|
|
|
<ul id="rev-list">
|
2022-08-31 15:58:54 +00:00
|
|
|
{{range $commitI, $commit := .Graph.Commits}}
|
2021-04-01 20:01:23 +00:00
|
|
|
<li {{if $commit.Rev}}id="commit-{{$commit.Rev}}"{{end}} data-flow="{{$commit.Flow}}">
|
2022-08-31 15:58:54 +00:00
|
|
|
{{if $commit.OnlyRelation}}
|
2021-04-01 20:01:23 +00:00
|
|
|
<span></span>
|
2022-08-31 15:58:54 +00:00
|
|
|
{{else}}
|
2024-12-27 20:18:30 +00:00
|
|
|
{{template "repo/commit_sign_badge" dict "Commit" $commit.Commit "CommitBaseLink" (print $.RepoLink "/commit") "CommitSignVerification" $commit.Verification}}
|
|
|
|
|
|
|
|
<span class="message tw-inline-block gt-ellipsis">
|
2024-11-05 06:04:26 +00:00
|
|
|
<span>{{ctx.RenderUtils.RenderCommitMessage $commit.Subject ($.Repository.ComposeMetas ctx)}}</span>
|
2021-12-11 14:12:18 +00:00
|
|
|
</span>
|
2024-12-27 20:18:30 +00:00
|
|
|
|
|
|
|
<span class="commit-refs flex-text-inline">
|
2020-11-08 17:21:54 +00:00
|
|
|
{{range $commit.Refs}}
|
|
|
|
{{$refGroup := .RefGroup}}
|
|
|
|
{{if eq $refGroup "pull"}}
|
2023-04-22 18:16:22 +00:00
|
|
|
{{if or (not $.HidePRRefs) (SliceUtils.Contains $.SelectedBranches .Name)}}
|
2021-05-06 04:05:54 +00:00
|
|
|
<!-- it's intended to use issues not pulls, if it's a pull you will get redirected -->
|
2024-11-05 06:04:26 +00:00
|
|
|
<a class="ui labelled basic tiny button" href="{{$.RepoLink}}/{{if $.Repository.UnitEnabled ctx ctx.Consts.RepoUnitTypePullRequests}}pulls{{else}}issues{{end}}/{{.ShortName|PathEscape}}">
|
2023-07-25 10:17:41 +00:00
|
|
|
{{svg "octicon-git-pull-request"}} #{{.ShortName}}
|
2020-11-08 17:21:54 +00:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{else if eq $refGroup "tags"}}
|
2024-08-19 17:04:06 +00:00
|
|
|
{{- template "repo/tag/name" dict "RepoLink" $.Repository.Link "TagName" .ShortName -}}
|
2020-11-08 17:21:54 +00:00
|
|
|
{{else if eq $refGroup "remotes"}}
|
2023-07-25 10:17:41 +00:00
|
|
|
<a class="ui labelled basic tiny button" href="{{$.RepoLink}}/src/commit/{{$commit.Rev|PathEscape}}">
|
|
|
|
{{svg "octicon-cross-reference"}} {{.ShortName}}
|
2020-11-08 17:21:54 +00:00
|
|
|
</a>
|
|
|
|
{{else if eq $refGroup "heads"}}
|
2023-07-25 10:17:41 +00:00
|
|
|
<a class="ui labelled basic tiny button" href="{{$.RepoLink}}/src/branch/{{.ShortName|PathEscape}}">
|
|
|
|
{{svg "octicon-git-branch"}} {{.ShortName}}
|
2020-11-08 17:21:54 +00:00
|
|
|
</a>
|
|
|
|
{{else}}
|
2023-03-27 19:32:11 +00:00
|
|
|
<!-- Unknown ref type .Name -->
|
2020-11-08 17:21:54 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</span>
|
2024-12-27 20:18:30 +00:00
|
|
|
|
|
|
|
<span class="author flex-text-inline">
|
2020-11-08 17:21:54 +00:00
|
|
|
{{$userName := $commit.Commit.Author.Name}}
|
|
|
|
{{if $commit.User}}
|
2024-03-28 19:15:39 +00:00
|
|
|
{{if and $commit.User.FullName DefaultShowFullName}}
|
2020-11-08 17:21:54 +00:00
|
|
|
{{$userName = $commit.User.FullName}}
|
|
|
|
{{end}}
|
2024-06-28 21:29:15 +00:00
|
|
|
{{ctx.AvatarUtils.Avatar $commit.User 18}}
|
2021-04-26 18:02:15 +00:00
|
|
|
<a href="{{$commit.User.HomeLink}}">{{$userName}}</a>
|
2020-11-08 17:21:54 +00:00
|
|
|
{{else}}
|
2024-06-28 21:29:15 +00:00
|
|
|
{{ctx.AvatarUtils.AvatarByEmail $commit.Commit.Author.Email $userName 18}}
|
2020-12-03 18:46:11 +00:00
|
|
|
{{$userName}}
|
2020-11-08 17:21:54 +00:00
|
|
|
{{end}}
|
|
|
|
</span>
|
2024-12-27 20:18:30 +00:00
|
|
|
|
|
|
|
<span class="time flex-text-inline">{{DateUtils.FullTime $commit.Date}}</span>
|
2022-08-31 15:58:54 +00:00
|
|
|
{{end}}
|
2020-11-08 17:21:54 +00:00
|
|
|
</li>
|
2022-08-31 15:58:54 +00:00
|
|
|
{{end}}
|
2020-11-08 17:21:54 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|