code.gitea.io/gitea@v1.22.3/templates/repo/commits_table.tmpl (about) 1 <h4 class="ui top attached header commits-table tw-flex tw-items-center tw-justify-between"> 2 <div class="commits-table-left tw-flex tw-items-center"> 3 {{if or .PageIsCommits (gt .CommitCount 0)}} 4 {{.CommitCount}} {{ctx.Locale.Tr "repo.commits.commits"}} 5 {{else if .IsNothingToCompare}} 6 {{ctx.Locale.Tr "repo.commits.nothing_to_compare"}} 7 {{else}} 8 {{ctx.Locale.Tr "repo.commits.no_commits" $.BaseBranch $.HeadBranch}} 9 {{end}} 10 </div> 11 {{if .IsDiffCompare}} 12 <div class="commits-table-right tw-whitespace-nowrap"> 13 <a href="{{$.CommitRepoLink}}/commit/{{.BeforeCommitID | PathEscape}}" class="ui green sha label tw-mx-0">{{if not .BaseIsCommit}}{{if .BaseIsBranch}}{{svg "octicon-git-branch"}}{{else if .BaseIsTag}}{{svg "octicon-tag"}}{{end}}{{.BaseBranch}}{{else}}{{ShortSha .BaseBranch}}{{end}}</a> 14 ... 15 <a href="{{$.CommitRepoLink}}/commit/{{.AfterCommitID | PathEscape}}" class="ui green sha label tw-mx-0">{{if not .HeadIsCommit}}{{if .HeadIsBranch}}{{svg "octicon-git-branch"}}{{else if .HeadIsTag}}{{svg "octicon-tag"}}{{end}}{{.HeadBranch}}{{else}}{{ShortSha .HeadBranch}}{{end}}</a> 16 </div> 17 {{end}} 18 </h4> 19 20 {{if .PageIsCommits}} 21 <div class="ui attached segment"> 22 <form class="ignore-dirty" action="{{.RepoLink}}/commits/{{.BranchNameSubURL}}/search"> 23 <div class="ui small fluid action input"> 24 {{template "shared/search/input" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.commit_kind")}} 25 {{template "repo/commits_search_dropdown" .}} 26 {{template "shared/search/button" dict "Tooltip" (ctx.Locale.Tr "repo.commits.search.tooltip")}} 27 </div> 28 </form> 29 </div> 30 {{end}} 31 32 {{if and .Commits (gt .CommitCount 0)}} 33 {{template "repo/commits_list" .}} 34 {{end}} 35 36 {{template "base/paginate" .}}