mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +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
|
@ -45,7 +45,12 @@ const boardsTemplate = `
|
|||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<div class="board-summary">There are {{ len $b.Actions }} actions for this board.</div>
|
||||
<div class="board-summary">There
|
||||
{{if eq 1 (len $b.Actions)}} is {{else}} are {{end}}
|
||||
{{ len $b.Actions }}
|
||||
{{if eq 1 (len $b.Actions)}}action {{else}} actions {{end}}
|
||||
for this board.
|
||||
</div>
|
||||
<span class="board-meta">
|
||||
{{range $act, $tot := $b.ActionSummary}}
|
||||
{{$act}} ({{$tot}}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue