1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-27 17:19:42 +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 = ` const archiveTemplate = `
<h3>Deleted and Archived Cards</h3> <h3>Deleted and Archived Cards</h3>
Since ###1st Aug 2016###<br> <p>Changes since {{.Since}}.</p>
{{range $b := .Boards}} {{range $b := .Boards}}
<div> <div>
<p>For board <p>For board

View file

@ -14,24 +14,22 @@ package trello
const boardsTemplate = ` const boardsTemplate = `
<h3>All Boards</h3> <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}} {{range $b := .Boards}}
<div> <div>
<p>There are {{ len $b.Actions }} actions for board
<a href="{{ $b.Board.URL }}"> <a href="{{ $b.Board.URL }}">
<span style="background-color: {{$b.Board.Prefs.BackgroundColor}}">{{$b.Board.Name}}</span> <span style="background-color: {{$b.Board.Prefs.BackgroundColor}}">{{$b.Board.Name}}</span>
</a> </a>
</p> <p>There are {{ len $b.Actions }} actions for board</p>
<div> <div>
{{range $idx, $act := $b.ActionSummary}} {{range $act, $tot := $b.ActionSummary}}
{{$act}} {{$idx}}, {{$act}} ({{$tot}}),
{{end}} {{end}}
{{if gt (len $b.Archived) 0}} {{if gt (len $b.Archived) 0}}
archiveCard archive card ({{len $b.Archived}}).
{{len $b.Archived}}.
<br> <br>
{{end}} {{end}}
</div> </div>