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

select which boards and date since, individual board not working yet

This commit is contained in:
Elliott Stoneham 2016-09-09 16:28:51 +01:00
parent 16bf5237b9
commit 1e37c68d99
7 changed files with 166 additions and 87 deletions

View file

@ -12,17 +12,21 @@
package trello
const graphsTemplate = `
<b>Single Boards (graphs)</b><br>
{{range $b := .Boards}}
<div>
<p>There are {{ $b.CardCount }} cards across {{ $b.ListCount }} lists for board <a href="{{ $b.Board.URL }}">{{$b.Board.Name}}.</a></p>
{{if false}}
<b>Single Boards (graphs)</b><br>
{{range $b := .Boards}}
<div>
{{range $data := $b.Data}}
<div style="background-color: {{$b.Board.Prefs.BackgroundColor}}">
<progress value="{{len $data.Cards}}" max="{{ $b.CardCount }}"></progress> {{ $data.List.Name }}
</div>
{{end}}
<p>There are {{ $b.CardCount }} cards across {{ $b.ListCount }} lists for board <a href="{{ $b.Board.URL }}">{{$b.Board.Name}}.</a></p>
<div>
{{range $data := $b.Data}}
<div style="background-color: {{$b.Board.Prefs.BackgroundColor}}">
<progress value="{{len $data.Cards}}" max="{{ $b.CardCount }}"></progress> {{ $data.List.Name }}
</div>
{{end}}
</div>
</div>
</div>
{{end}}
{{end}}
`