1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 22:29:41 +02:00

Color common labels

This commit is contained in:
Elliott Stoneham 2016-09-05 09:45:02 +01:00
parent 8183af4bb2
commit d50aa23f34
2 changed files with 43 additions and 32 deletions

View file

@ -32,7 +32,9 @@ const summaryTemplate = `
<tbody class="github">
{{range $slabel := .SharedLabels}}
<tr>
<td style="width:100%;">{{$slabel.Name}} ({{$slabel.Count}}) in {{$slabel.Repos}}</td>
<td style="width:100%;">
<span style="background-color:#{{$slabel.Color}}">{{$slabel.Name}} ({{$slabel.Count}})</span> in {{$slabel.Repos}}
</td>
</tr>
{{end}}
</tbody>