1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-29 18:19:44 +02:00

show 'preparing' message when fetching from Trello

This commit is contained in:
Harvey Kandola 2016-09-13 09:46:08 -07:00
parent 7e2cf3b276
commit b5de8d2673
2 changed files with 581 additions and 576 deletions

View file

@ -11,8 +11,13 @@
package trello package trello
const renderTemplate = `<p>Activity since {{.Since}} for boards: const renderTemplate = `
{{range $idx, $brd := .Boards}}{{if gt $idx 0}}, {{end}}<a class="link" href="{{$brd.Board.URL}}">{{$brd.Board.OrgName}}/{{$brd.Board.Name}}</a>{{end}}.</p>` + {{if eq .Since ""}}
<p>Preparing...</p>
{{else}}
<p>Activity since {{.Since}} for boards:
{{range $idx, $brd := .Boards}}{{if gt $idx 0}}, {{end}}<a class="link" href="{{$brd.Board.URL}}">{{$brd.Board.OrgName}}/{{$brd.Board.Name}}</a>{{end}}.</p>
{{end}}` +
labelsTemplate + labelsTemplate +
boardsTemplate + boardsTemplate +
graphsTemplate + graphsTemplate +

File diff suppressed because one or more lines are too long