You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

commits_table.tmpl 1.8KB

12345678910111213141516171819202122232425262728293031323334
  1. <h4 class="ui top attached header commits-table df ac sb">
  2. <div class="commits-table-left df ac">
  3. {{if or .PageIsCommits (gt .CommitCount 0)}}
  4. {{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}} {{if .Branch}}({{.Branch}}){{end}}
  5. {{else}}
  6. {{.i18n.Tr "repo.commits.no_commits" $.BaseBranch $.HeadBranch }} {{if .Branch}}({{.Branch}}){{end}}
  7. {{end}}
  8. </div>
  9. <div class="commits-table-right df ac">
  10. {{if .PageIsCommits}}
  11. <form class="ignore-dirty" action="{{.RepoLink}}/commits/{{.BranchNameSubURL | EscapePound}}/search">
  12. <div class="ui tiny search input">
  13. <input name="q" placeholder="{{.i18n.Tr "repo.commits.search"}}" value="{{.Keyword}}" autofocus>
  14. </div>
  15. &nbsp;
  16. <div class="ui checkbox">
  17. <input type="checkbox" name="all" id="all" value="true" {{.All}}>
  18. <label for="all">{{.i18n.Tr "repo.commits.search_all"}} &nbsp;&nbsp;</label>
  19. </div>
  20. <button class="ui primary tiny button mr-0 poping up" data-panel="#add-deploy-key-panel" data-content={{.i18n.Tr "repo.commits.search.tooltip"}}>{{.i18n.Tr "repo.commits.find"}}</button>
  21. </form>
  22. {{else if .IsDiffCompare}}
  23. <a href="{{$.CommitRepoLink}}/commit/{{.BeforeCommitID}}" class="ui green sha label">{{if not .BaseIsCommit}}{{if .BaseIsBranch}}{{svg "octicon-git-branch"}}{{else if .BaseIsTag}}{{svg "octicon-tag"}}{{end}}{{.BaseBranch}}{{else}}{{ShortSha .BaseBranch}}{{end}}</a>
  24. ...
  25. <a href="{{$.CommitRepoLink}}/commit/{{.AfterCommitID}}" class="ui green sha label">{{if not .HeadIsCommit}}{{if .HeadIsBranch}}{{svg "octicon-git-branch"}}{{else if .HeadIsTag}}{{svg "octicon-tag"}}{{end}}{{.HeadBranch}}{{else}}{{ShortSha .HeadBranch}}{{end}}</a>
  26. {{end}}
  27. </div>
  28. </h4>
  29. {{if and .Commits (gt .CommitCount 0)}}
  30. {{template "repo/commits_list" .}}
  31. {{end}}
  32. {{template "base/paginate" .}}