-
+ |
{{ $l.Name }} ({{len $l.Boards}})
|
-
+ |
{{range $brd := $l.Boards}}
{{ $brd }},
{{end}}
diff --git a/core/section/trello/master_template.go b/core/section/trello/master_template.go
index ba06042d..dbd39848 100644
--- a/core/section/trello/master_template.go
+++ b/core/section/trello/master_template.go
@@ -15,73 +15,8 @@ const renderTemplate = `
Header for Trello Multi-Board Test (in master_template.go)
` + labelsTemplate +
boardsTemplate +
- graphsTemplate +
+ // graphsTemplate +
membersTemplate +
archiveTemplate +
tradTemplate +
``
-
-const oldSave = `
-Labels
-{{range $l := .SharedLabels}}
- {{ $l.Name }}
- {{range $brd := $l.Boards}}
- {{ $brd }},
- {{end}}
-
-{{end}}
-
-All Boards
-
-Single Boards (graphs)
-{{range $b := .Boards}}
-
- There are {{ $b.CardCount }} cards across {{ $b.ListCount }} lists for board {{$b.Board.Name}}.
-
- {{range $data := $b.Data}}
-
- {{ $data.List.Name }}
-
- {{end}}
-
-
-{{end}}
-
-
-Member Stats
-{{range $m := .MemberBoardAssign}}
-
- {{$m.MemberName}} :
- {{range $ac := $m.AssignCounts}}
- {{$ac.BoardName}} ({{$ac.Count}}),
- {{end}}
-
-{{end}}
-
-Archive?
-
-
-Previous version
-
-{{range $b := .Boards}}
- Non-printable
-
- There are {{ $b.CardCount }} cards across {{ $b.ListCount }} lists for board {{$b.Board.Name}}.
-
-
-{{end}}
-`
diff --git a/core/section/trello/members_template.go b/core/section/trello/members_template.go
index 8c33d517..9527a6dd 100644
--- a/core/section/trello/members_template.go
+++ b/core/section/trello/members_template.go
@@ -13,9 +13,8 @@ package trello
const membersTemplate = `
Member Stats
-
- There are {{len .MemberBoardAssign}} members assigned to {{.CardAssignTotal}} cards
- of the total {{.CardTotal}} cards across {{len .Boards}} boards.
+
+ There are {{len .MemberBoardAssign}} members assigned to {{.CardAssignTotal}} cards of the total {{.CardTotal}} cards across {{len .Boards}} boards.
diff --git a/core/section/trello/trad_template.go b/core/section/trello/trad_template.go
index e67865ba..59fcc6d1 100644
--- a/core/section/trello/trad_template.go
+++ b/core/section/trello/trad_template.go
@@ -12,27 +12,28 @@
package trello
const tradTemplate = `
- Previous version
-
-{{range $b := .Boards}}
- Non-printable
-
- There are {{ $b.CardCount }} cards across {{ $b.ListCount }} lists for board {{$b.Board.Name}}.
-
- {{$b.Board.Name}}
- {{range $data := $b.Data}}
-
- {{end}}
+{{if eq 1 (len .Boards)}}
+ #Board Name
+ {{range $b := .Boards}}
+ Non-printable
+
+ There are {{ $b.CardCount }} cards across {{ $b.ListCount }} lists for board {{$b.Board.Name}}.
+
-
+ {{end}}
{{end}}
`
|