// Copyright 2016 Documize Inc. . All rights reserved. // // This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license // by contacting . // // https://documize.com package trello const renderTemplate = `

Header for Trello Multi-Board Test (in master_template.go)

` + labelsTemplate + boardsTemplate + 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}}.

{{$b.Board.Name}}
{{range $data := $b.Data}}
{{ $data.List.Name }}
{{range $card := $data.Cards}}
{{ $card.Name }}
{{end}}
{{end}}
{{end}} `