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:
parent
8867b27152
commit
ec0244dabc
6 changed files with 189 additions and 160 deletions
|
@ -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>
|
||||
`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue