diff --git a/core/section/trello/archive_template.go b/core/section/trello/archive_template.go index d690e2d3..8b6c6aa3 100644 --- a/core/section/trello/archive_template.go +++ b/core/section/trello/archive_template.go @@ -12,34 +12,46 @@ package trello const archiveTemplate = ` -
Changes since {{.Since}}.
-- - {{$b.Board.Name}} - - | -
- {{range $act := $b.Actions}}
- {{if eq $act.Type "deleteCard" }}
- Deleted:
- {{$act.Data.List.Name}} : {{$act.Data.Card.Name}} - {{$act.Data.Text}}
+{{if gt (len .Boards) 0}}
+ Deleted and Archived Cards
+ Changes since {{.Since}}. +
+
+ {{range $arch := $b.Archived}}
+ Archived:
+ {{$arch.Name}}
+ {{if ne $arch.Desc ""}}
+ - {{$arch.Desc}}
+ {{end}}
+
+ {{end}} + |
+
Changes since {{.Since}}.
-- {{len .Boards}} Boards - | -- {{.ListTotal}} Lists - | -- {{.CardTotal}} Cards - | -- {{len .MemberBoardAssign}} Members - | -
- - {{$b.Board.Name}} - - | -
- There are {{ len $b.Actions }} actions for this board.-- {{range $act, $tot := $b.ActionSummary}} - {{$act}} ({{$tot}}), - {{end}} - {{if gt (len $b.Archived) 0}} - archive card ({{len $b.Archived}}). +{{if gt (len .Boards) 0}} + Boards
+ Changes since {{.Since}}. +
+
+
+
|
+
There are {{ $b.CardCount }} cards across {{ $b.ListCount }} lists for board {{$b.Board.Name}}.
diff --git a/core/section/trello/labels_template.go b/core/section/trello/labels_template.go index e34a3882..91e811b6 100644 --- a/core/section/trello/labels_template.go +++ b/core/section/trello/labels_template.go @@ -13,7 +13,7 @@ package trello const labelsTemplate = ` {{if gt (len .SharedLabels) 0}} -There are {{len .SharedLabels}} common labels across the boards.
- {{range $brd := $l.Boards}} - {{ $brd }}, - {{end}} + {{range $idx, $brd := $l.Boards}}{{if gt $idx 0}}, {{end}}{{ $brd }}{{end}}. | {{end}} diff --git a/core/section/trello/members_template.go b/core/section/trello/members_template.go index 9e24671c..22c72c1d 100644 --- a/core/section/trello/members_template.go +++ b/core/section/trello/members_template.go @@ -12,32 +12,31 @@ package trello const membersTemplate = ` -
- ![]() |
-
- {{$m.MemberName}}-- {{range $ac := $m.AssignCounts}} - {{$ac.BoardName}} ({{$ac.Count}}), - {{end}} - - |
-
+ ![]() |
+
+ {{$m.MemberName}}++ {{range $idx, $ac := $m.AssignCounts}}{{if gt $idx 0}}, {{end}}{{$ac.BoardName}} ({{$ac.Count}}){{end}}. + + |
+
There are {{ $b.CardCount }} cards across {{ $b.ListCount }} lists for board {{$b.Board.Name}}.
-There are {{ .Detail.CardCount }} cards across {{ .Detail.ListCount }} lists + for board {{.Detail.Board.Name}}.
+