diff --git a/app/app/templates/components/section/trello/type-editor.hbs b/app/app/templates/components/section/trello/type-editor.hbs index 973bb4fb..980bac57 100644 --- a/app/app/templates/components/section/trello/type-editor.hbs +++ b/app/app/templates/components/section/trello/type-editor.hbs @@ -8,18 +8,18 @@
You have no team boards to share - personal boards are never shown.
{{else}} - +
-
Select Board & Lists
+
Select Board & Lists
Choose lists to include from board
{{input id="trello-since" value=config.since type="text" }}
- +
All boards are selectd by default
@@ -32,7 +32,7 @@ {{else}} check_box_outline_blank {{/if}} - {{board.name}} + {{board.idOrganization}} / {{board.name}}
{{/if}} {{/each}} @@ -71,7 +71,7 @@
{{/if}} - + {{else}}
diff --git a/core/section/trello/boards_template.go b/core/section/trello/boards_template.go index b6f923b8..082e4294 100644 --- a/core/section/trello/boards_template.go +++ b/core/section/trello/boards_template.go @@ -45,7 +45,12 @@ const boardsTemplate = ` -
There are {{ len $b.Actions }} actions for this board.
+
There + {{if eq 1 (len $b.Actions)}} is {{else}} are {{end}} + {{ len $b.Actions }} + {{if eq 1 (len $b.Actions)}}action {{else}} actions {{end}} + for this board. +
{{range $act, $tot := $b.ActionSummary}} {{$act}} ({{$tot}}), diff --git a/core/section/trello/labels_template.go b/core/section/trello/labels_template.go index eb8b00cd..ddf63d2f 100644 --- a/core/section/trello/labels_template.go +++ b/core/section/trello/labels_template.go @@ -13,9 +13,6 @@ package trello const labelsTemplate = `
- -

Activity since #date for team Documize boards: Board Name

- {{if gt (len .SharedLabels) 0}}
Labels

There are {{len .SharedLabels}} common labels across the boards.

@@ -28,7 +25,7 @@ const labelsTemplate = ` {{ $l.Name }} ({{len $l.Boards}}) - {{range $idx, $brd := $l.Boards}}{{if gt $idx 0}}, {{end}}{{ $brd }}{{end}}. + {{range $idx, $brd := $l.Boards}}{{if gt $idx 0}}, {{end}}{{ $brd }}{{end}}. {{end}} diff --git a/core/section/trello/master_template.go b/core/section/trello/master_template.go index 0dc5a2c2..f165c941 100644 --- a/core/section/trello/master_template.go +++ b/core/section/trello/master_template.go @@ -11,7 +11,8 @@ package trello -const renderTemplate = `` + +const renderTemplate = `

Activity since {{.Since}} for boards: +{{range $idx, $brd := .Boards}}{{if gt $idx 0}}, {{end}}{{$brd.Board.Name}}{{end}}.

` + labelsTemplate + boardsTemplate + graphsTemplate + diff --git a/core/section/trello/members_template.go b/core/section/trello/members_template.go index b25ac70b..a776d42d 100644 --- a/core/section/trello/members_template.go +++ b/core/section/trello/members_template.go @@ -16,7 +16,7 @@ const membersTemplate = ` {{if gt (len .Boards) 0}}
Member Stats

- There are {{len .MemberBoardAssign}} members assigned to {{.CardAssignTotal}} cards of the total {{.CardTotal}} cards across {{len .Boards}} boards. + There {{if eq 1 (len .MemberBoardAssign)}} is one member {{else}} are {{len .MemberBoardAssign}} members {{end}} assigned to {{.CardAssignTotal}} cards of the total {{.CardTotal}} cards across {{len .Boards}} boards.