1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 23:59:47 +02:00

Tidy HTML, separate detailed single-board data

This commit is contained in:
Elliott Stoneham 2016-09-11 19:08:52 +01:00
parent 2d7647e790
commit 0345c93560
8 changed files with 155 additions and 134 deletions

View file

@ -13,7 +13,7 @@ package trello
const labelsTemplate = `
{{if gt (len .SharedLabels) 0}}
<h3>Labels</h3>
<div class="heading">Labels</div>
<p>There are {{len .SharedLabels}} common labels across the boards.</p>
<div class="section-trello-render">
<table class="trello-table" class="width-100">
@ -24,9 +24,7 @@ const labelsTemplate = `
<span class="trello-label" style="background-color: {{ $l.Color }}">{{ $l.Name }} ({{len $l.Boards}})</span>
</td>
<td class="width-75">
{{range $brd := $l.Boards}}
{{ $brd }},
{{end}}
{{range $idx, $brd := $l.Boards}}{{if gt $idx 0}}, {{end}}{{ $brd }}{{end}}.
</td>
</tr>
{{end}}