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

Show since in boards summary

This commit is contained in:
EnesAlili 2016-09-09 11:58:44 +01:00
parent 157263828d
commit 16bf5237b9
2 changed files with 10 additions and 12 deletions

View file

@ -13,7 +13,7 @@ package trello
const archiveTemplate = `
<h3>Deleted and Archived Cards</h3>
Since ###1st Aug 2016###<br>
<p>Changes since {{.Since}}.</p>
{{range $b := .Boards}}
<div>
<p>For board

View file

@ -14,24 +14,22 @@ package trello
const boardsTemplate = `
<h3>All Boards</h3>
Changes since ###1 Aug 2016###.
<p>Changes since {{.Since}}.</p>
<p>{{len .Boards}} Boards, ###30 Lists, {{.CardTotal}} Cards, {{len .MemberBoardAssign}} Members, #10 Archived</p>
<p>{{len .Boards}} Boards, {{.ListTotal}} Lists, {{.CardTotal}} Cards, {{len .MemberBoardAssign}} Members</p>
{{range $b := .Boards}}
<div>
<p>There are {{ len $b.Actions }} actions for board
<a href="{{ $b.Board.URL }}">
<span style="background-color: {{$b.Board.Prefs.BackgroundColor}}">{{$b.Board.Name}}</span>
</a>
</p>
<a href="{{ $b.Board.URL }}">
<span style="background-color: {{$b.Board.Prefs.BackgroundColor}}">{{$b.Board.Name}}</span>
</a>
<p>There are {{ len $b.Actions }} actions for board</p>
<div>
{{range $idx, $act := $b.ActionSummary}}
{{$act}} {{$idx}},
{{range $act, $tot := $b.ActionSummary}}
{{$act}} ({{$tot}}),
{{end}}
{{if gt (len $b.Archived) 0}}
archiveCard
{{len $b.Archived}}.
archive card ({{len $b.Archived}}).
<br>
{{end}}
</div>