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

Trello html and css tidy up

This commit is contained in:
EnesAlili 2016-09-12 01:29:26 +01:00
parent 8867b27152
commit ec0244dabc
6 changed files with 189 additions and 160 deletions

View file

@ -12,24 +12,29 @@
package trello
const labelsTemplate = `
{{if gt (len .SharedLabels) 0}}
<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">
<tbody class="trello">
{{range $l := .SharedLabels}}
<tr>
<td class="width-25">
<span class="trello-label" style="background-color: {{ $l.Color }}">{{ $l.Name }} ({{len $l.Boards}})</span>
</td>
<td class="width-75">
{{range $idx, $brd := $l.Boards}}{{if gt $idx 0}}, {{end}}{{ $brd }}{{end}}.
</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{end}}
<div class="section-trello-render">
<p>Activity since #date for team Documize boards: <a class="link" href="#">Board Name</a></p>
{{if gt (len .SharedLabels) 0}}
<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">
<tbody class="trello">
{{range $l := .SharedLabels}}
<tr>
<td class="no-width">
<span class="trello-label" style="background-color: {{ $l.Color }}">{{ $l.Name }} ({{len $l.Boards}})</span>
</td>
<td>
<a class="link" href="#">{{range $idx, $brd := $l.Boards}}{{if gt $idx 0}}</a>, {{end}}{{ $brd }}{{end}}.
</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{end}}
</div>
`