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
|
@ -16,7 +16,7 @@ const membersTemplate = `
|
|||
{{if gt (len .Boards) 0}}
|
||||
<div class="heading">Member Stats</div>
|
||||
<p>
|
||||
There are {{len .MemberBoardAssign}} members assigned to {{.CardAssignTotal}} cards of the total {{.CardTotal}} cards across {{len .Boards}} boards.
|
||||
There {{if eq 1 (len .MemberBoardAssign)}} is one member {{else}} are {{len .MemberBoardAssign}} members {{end}} assigned to {{.CardAssignTotal}} cards of the total {{.CardTotal}} cards across {{len .Boards}} boards.
|
||||
</p>
|
||||
|
||||
<div class="section-trello-render">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue