From 900ebea3a7aca37c3ab8b8024d366b0f89b65c94 Mon Sep 17 00:00:00 2001 From: EnesAlili Date: Mon, 12 Sep 2016 20:47:11 +0100 Subject: [PATCH] Trello fronted and copy changes --- core/section/trello/boards_template.go | 27 +++---------------------- core/section/trello/labels_template.go | 2 +- core/section/trello/members_template.go | 4 ++-- core/section/trello/trad_template.go | 2 +- 4 files changed, 7 insertions(+), 28 deletions(-) diff --git a/core/section/trello/boards_template.go b/core/section/trello/boards_template.go index 082e4294..748191aa 100644 --- a/core/section/trello/boards_template.go +++ b/core/section/trello/boards_template.go @@ -15,26 +15,8 @@ const boardsTemplate = `
{{if gt (len .Boards) 0}}
Boards
-

Changes since {{.Since}}.

+

There are {{len .Boards}} boards, {{.ListTotal}} since lists, {{.CardTotal}} cards and {{len .MemberBoardAssign}} members {{.Since}}.

- - - - - - - - - -
- {{len .Boards}}boards - - {{.ListTotal}}lists - - {{.CardTotal}}cards - - {{len .MemberBoardAssign}}members -
{{range $b := .Boards}} @@ -45,11 +27,8 @@ const boardsTemplate = ` {{end}} diff --git a/core/section/trello/members_template.go b/core/section/trello/members_template.go index a776d42d..a209c39b 100644 --- a/core/section/trello/members_template.go +++ b/core/section/trello/members_template.go @@ -14,7 +14,7 @@ package trello const membersTemplate = `
{{if gt (len .Boards) 0}} -
Member Stats
+
Members

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.

@@ -30,7 +30,7 @@ const membersTemplate = `
diff --git a/core/section/trello/trad_template.go b/core/section/trello/trad_template.go index 871314be..2287bde4 100644 --- a/core/section/trello/trad_template.go +++ b/core/section/trello/trad_template.go @@ -14,7 +14,7 @@ package trello const tradTemplate = `
{{if ne .Detail.Board.ID ""}} -
Board: {{.Detail.Board.Name}}
+
{{.Detail.Board.Name}} Board

Non-printable

There are {{ .Detail.CardCount }} cards across {{ .Detail.ListCount }} lists

-
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. +
+ {{ len $b.Actions }}{{if eq 1 (len $b.Actions)}}action {{else}} actions {{end}}
{{range $act, $tot := $b.ActionSummary}} diff --git a/core/section/trello/labels_template.go b/core/section/trello/labels_template.go index a1b5a160..febe8f5e 100644 --- a/core/section/trello/labels_template.go +++ b/core/section/trello/labels_template.go @@ -25,7 +25,7 @@ const labelsTemplate = ` {{ $l.Name }} ({{len $l.Boards}})
- {{range $idx, $brd := $l.Boards}}{{if gt $idx 0}}, {{end}}{{$brd.OrgName}}::{{$brd.Name}}{{end}}. + {{range $idx, $brd := $l.Boards}}{{if gt $idx 0}}, {{end}}{{$brd.OrgName}}/{{$brd.Name}}{{end}}
{{$m.MemberName}}
- {{range $idx, $ac := $m.AssignCounts}}{{if gt $idx 0}}, {{end}}{{$ac.BoardName}} ({{$ac.Count}}){{end}}. + {{range $idx, $ac := $m.AssignCounts}}{{if gt $idx 0}}, {{end}}{{$ac.BoardName}} ({{$ac.Count}}){{end}}