mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Fixed copy render for plural and singular data
This commit is contained in:
parent
a2cc971821
commit
308f117cca
5 changed files with 15 additions and 12 deletions
|
@ -11,7 +11,8 @@
|
|||
|
||||
package trello
|
||||
|
||||
const renderTemplate = `` +
|
||||
const renderTemplate = `<p>Activity since {{.Since}} for boards:
|
||||
{{range $idx, $brd := .Boards}}{{if gt $idx 0}}, {{end}}<a class="link" href="{{$brd.Board.URL}}">{{$brd.Board.Name}}</a>{{end}}.</p>` +
|
||||
labelsTemplate +
|
||||
boardsTemplate +
|
||||
graphsTemplate +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue