1
0
Fork 0
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:
EnesAlili 2016-09-12 11:47:30 +01:00
parent a2cc971821
commit 308f117cca
5 changed files with 15 additions and 12 deletions

View file

@ -13,9 +13,6 @@ package trello
const labelsTemplate = `
<div class="section-trello-render">
<p>Activity since #date for team Documize boards: <a class="link" href="#">Board Name</a></p>
{{if gt (len .SharedLabels) 0}}
<div class="heading">Labels</div>
<p>There are {{len .SharedLabels}} common labels across the boards.</p>
@ -28,7 +25,7 @@ const labelsTemplate = `
<span class="trello-label" style="background-color: {{ $l.Color }}">{{ $l.Name }} ({{len $l.Boards}})</span>
</td>
<td>
<a class="link" href="#">{{range $idx, $brd := $l.Boards}}{{if gt $idx 0}}</a>, {{end}}{{ $brd }}{{end}}.
{{range $idx, $brd := $l.Boards}}{{if gt $idx 0}}, {{end}}<a class="link" href="#">{{ $brd }}</a>{{end}}.
</td>
</tr>
{{end}}