| 1 | {{ define "page" -}} |
| 2 | {{ template "repo-header" . }} |
| 3 | <section class="shithub-actions-page"> |
| 4 | {{ template "actions-sidebar" . }} |
| 5 | |
| 6 | <div class="shithub-actions-main"> |
| 7 | <header class="shithub-actions-head shithub-actions-management-head"> |
| 8 | <div> |
| 9 | <h1>{{ .Page.Title }}</h1> |
| 10 | <p>{{ .Page.Description }}</p> |
| 11 | </div> |
| 12 | {{ if .Page.PrimaryAction }} |
| 13 | {{ if .Page.PrimaryDisabled }} |
| 14 | <span class="shithub-button shithub-button-primary shithub-button-disabled" aria-disabled="true">{{ .Page.PrimaryAction }}</span> |
| 15 | {{ else }} |
| 16 | <a class="shithub-button shithub-button-primary" href="#">{{ .Page.PrimaryAction }}</a> |
| 17 | {{ end }} |
| 18 | {{ end }} |
| 19 | </header> |
| 20 | |
| 21 | {{ if .Page.Stats }} |
| 22 | <section class="shithub-actions-metric-grid" aria-label="{{ .Page.Title }} summary"> |
| 23 | {{ range .Page.Stats }} |
| 24 | <article> |
| 25 | <h2>{{ .Label }}</h2> |
| 26 | <strong>{{ .Value }}</strong> |
| 27 | <p>{{ .Note }}</p> |
| 28 | </article> |
| 29 | {{ end }} |
| 30 | </section> |
| 31 | {{ end }} |
| 32 | |
| 33 | {{ if .Page.Tabs }} |
| 34 | <nav class="shithub-actions-management-tabs" aria-label="{{ .Page.Title }} views"> |
| 35 | {{ range .Page.Tabs }} |
| 36 | <span class="{{ if .Active }}is-active{{ else }}is-disabled{{ end }}"{{ if .Active }} aria-current="page"{{ else }} aria-disabled="true"{{ end }}> |
| 37 | {{ octicon .Icon }} {{ .Label }} |
| 38 | </span> |
| 39 | {{ end }} |
| 40 | </nav> |
| 41 | {{ end }} |
| 42 | |
| 43 | {{ if .Page.SearchPlaceholder }} |
| 44 | <form class="shithub-actions-management-filter" role="search" aria-label="{{ .Page.SearchPlaceholder }}"> |
| 45 | <label> |
| 46 | {{ octicon "search" }} |
| 47 | <span class="sr-only">{{ .Page.SearchPlaceholder }}</span> |
| 48 | <input type="search" placeholder="{{ .Page.SearchPlaceholder }}" disabled> |
| 49 | </label> |
| 50 | </form> |
| 51 | {{ end }} |
| 52 | |
| 53 | <section class="shithub-actions-management-box"> |
| 54 | <header> |
| 55 | <strong>{{ .Page.CountLabel }}</strong> |
| 56 | </header> |
| 57 | <div class="shithub-actions-management-empty"> |
| 58 | <span class="shithub-actions-empty-icon">{{ octicon .Page.Icon }}</span> |
| 59 | <h2>{{ .Page.EmptyTitle }}</h2> |
| 60 | <p>{{ .Page.EmptyBody }}</p> |
| 61 | </div> |
| 62 | </section> |
| 63 | </div> |
| 64 | </section> |
| 65 | {{- end }} |