1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 16:19:46 +02:00

Added board colour codes and summary totals

This commit is contained in:
EnesAlili 2016-09-09 11:29:41 +01:00
parent 8fbac3e2e2
commit 42704bdcca
2 changed files with 16 additions and 5 deletions

View file

@ -12,15 +12,19 @@
package trello package trello
const archiveTemplate = ` const archiveTemplate = `
<b>Deleted and Archived Cards</b><br> <h3>Deleted and Archived Cards</h3>
Since ###1st Aug 2016###<br> Since ###1st Aug 2016###<br>
{{range $b := .Boards}} {{range $b := .Boards}}
<div> <div>
<p>For board <a href="{{ $b.Board.URL }}">{{$b.Board.Name}}</a>.</p> <p>For board
<a href="{{ $b.Board.URL }}">
<span style="background-color: {{$b.Board.Prefs.BackgroundColor}}">{{$b.Board.Name}}</span>
</a>
</p>
<div> <div>
{{range $act := $b.Actions}} {{range $act := $b.Actions}}
{{if eq $act.Type "deleteCard" }} {{if eq $act.Type "deleteCard" }}
Deleted: Deleted:
{{$act.Data.List.Name}}/{{$act.Data.Card.Name}} - {{$act.Data.Text}} {{$act.Data.List.Name}}/{{$act.Data.Card.Name}} - {{$act.Data.Text}}
<br> <br>
{{end}} {{end}}

View file

@ -13,11 +13,18 @@ package trello
const boardsTemplate = ` const boardsTemplate = `
<b>All Boards</b><br> <h3>All Boards</h3>
Changes since ###1 Aug 2016###. Changes since ###1 Aug 2016###.
<p>{{len .Boards}} Boards, ###30 Lists, {{.CardTotal}} Cards, {{len .MemberBoardAssign}} Members, #10 Archived</p>
{{range $b := .Boards}} {{range $b := .Boards}}
<div> <div>
<p>There are {{ len $b.Actions }} actions for board <a href="{{ $b.Board.URL }}">{{$b.Board.Name}}.</a></p> <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>
<div> <div>
{{range $idx, $act := $b.ActionSummary}} {{range $idx, $act := $b.ActionSummary}}
{{$act}} {{$idx}}, {{$act}} {{$idx}},