internal/web/templates/orglabels.html

e9566eed86ebcd185c4b85f63d667b5e671fe787
gitbay/internal/web/templates/orglabels.html history · blame · raw

15 lines · 828 bytes

 1{{define "title"}}labels · {{.Org}}{{end}}
 2{{define "content"}}
 3<h1><a href="/{{.Org}}">{{.Org}}</a> labels</h1>
 4<p class="meta">Every repository under {{.Org}} sees these beside its own. Managed with <code>gitbay org label set {{.Org}} &lt;label&gt;</code>; counts span the repositories you can read.</p>
 5{{if .Labels}}<div class="tablewrap"><table class="keys">
 6<tr class="cols"><th scope="col">label</th><th scope="col">colour</th><th scope="col">issues</th><th scope="col">merge requests</th></tr>
 7{{range .Labels}}<tr>
 8  <td><span class="chip label" style="{{index $.LabelColors .Name}}">{{.Name}}</span></td>
 9  <td><span class="mono">{{if .Color}}{{.Color}}{{else}}—{{end}}</span></td>
10  <td>{{.Issues}}</td>
11  <td>{{.MRs}}</td>
12</tr>
13{{end}}</table></div>
14{{else}}<p class="none">No org labels yet.</p>{{end}}
15{{end}}