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.

runs_list.tmpl 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div class="flex-list gt-m-0">
  2. {{if eq (len .Runs) 0}}
  3. <div class="empty center">
  4. {{svg "octicon-no-entry" 48}}
  5. <h2>{{if $.IsFiltered}}{{.locale.Tr "actions.runs.no_results"}}{{else}}{{.locale.Tr "actions.runs.no_runs"}}{{end}}</h2>
  6. </div>
  7. {{end}}
  8. {{range .Runs}}
  9. <div class="flex-item flex-item-center">
  10. <div class="flex-item-leading">
  11. {{template "repo/actions/status" (dict "status" .Status.String "locale" $.locale)}}
  12. </div>
  13. <div class="flex-item-main">
  14. <a class="flex-item-title" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
  15. {{- .Title -}}
  16. </a>
  17. <div class="flex-item-body">
  18. <b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>
  19. : {{$.locale.Tr "actions.runs.commit"}}
  20. <a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>
  21. {{$.locale.Tr "actions.runs.pushed_by"}}
  22. <a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName}}</a>
  23. </div>
  24. </div>
  25. <div class="flex-item-trailing">
  26. {{if .RefLink}}
  27. <a class="ui label gt-px-2 gt-mx-0" href="{{.RefLink}}">{{.PrettyRef}}</a>
  28. {{else}}
  29. <span class="ui label gt-px-2 gt-mx-0">{{.PrettyRef}}</span>
  30. {{end}}
  31. </div>
  32. <div class="run-list-item-right">
  33. <div class="run-list-meta">{{svg "octicon-calendar" 16}}{{TimeSinceUnix .Updated $.locale}}</div>
  34. <div class="run-list-meta">{{svg "octicon-stopwatch" 16}}{{.Duration}}</div>
  35. </div>
  36. </div>
  37. {{end}}
  38. </div>
  39. {{template "base/paginate" .}}