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:
parent
7e2cf3b276
commit
b5de8d2673
2 changed files with 581 additions and 576 deletions
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue