1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

More Trello copy tweaks

This commit is contained in:
EnesAlili 2016-09-12 21:09:40 +01:00
parent 67e80dfdbf
commit 690a29c930
3 changed files with 17 additions and 5 deletions

View file

@ -23,21 +23,24 @@ const boardsTemplate = `
<tr>
<td>
<a href="{{ $b.Board.URL }}">
<span class="trello-board" style="background-color: {{$b.Board.Prefs.BackgroundColor}}">{{$b.Board.Name}}</span>
<div class="trello-board" style="background-color: {{$b.Board.Prefs.BackgroundColor}}">
{{$b.Board.Name}}
<span>{{$b.Board.OrgName}}</span>
</div>
</a>
</td>
<td>
<div class="board-summary">
{{ len $b.Actions }}{{if eq 1 (len $b.Actions)}}action {{else}} actions {{end}}
{{ len $b.Actions }}{{if eq 1 (len $b.Actions)}} action {{else}} actions {{end}}
</div>
<span class="board-meta">
{{range $act, $tot := $b.ActionSummary}}
{{$act}} ({{$tot}}),
{{end}}
{{if gt (len $b.Archived) 0}}
archive card ({{len $b.Archived}}).
archive card ({{len $b.Archived}})
{{else}}
no cards archived.
no cards archived
{{end}}
<br>
</span>