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:
parent
16bf5237b9
commit
1e37c68d99
7 changed files with 166 additions and 87 deletions
|
@ -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}}
|
||||
`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue