1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 06:09:42 +02:00
documize/core/section/trello/boards_template.go

37 lines
852 B
Go
Raw Normal View History

// Copyright 2016 Documize Inc. <legal@documize.com>. 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 <sales@documize.com>.
//
// https://documize.com
package trello
const boardsTemplate = `
2016-09-08 15:08:20 +01:00
<b>All Boards</b><br>
2016-09-08 17:17:45 +01:00
Changes since ###1 Aug 2016###.
2016-09-08 15:08:20 +01:00
{{range $b := .Boards}}
<div>
<p>There are {{ len $b.Actions }} actions for board <a href="{{ $b.Board.URL }}">{{$b.Board.Name}}.</a></p>
<div>
2016-09-08 17:17:45 +01:00
{{range $idx, $act := $b.ActionSummary}}
{{$act}} {{$idx}},
{{end}}
{{if gt (len $b.Archived) 0}}
archiveCard
{{len $b.Archived}}.
<br>
2016-09-08 15:08:20 +01:00
{{end}}
</div>
</div>
{{end}}
<br>
`