Add helper which convert singular and plural.

This commit is contained in:
takezoe
2013-07-04 08:57:43 +09:00
parent bf4bd6e319
commit a326e4b095
3 changed files with 9 additions and 11 deletions

View File

@@ -117,11 +117,7 @@
<span class="label label-success issue-status">Open</span>
}
<div class="small" style="text-align: center;">
@if(comments.size == 1){
<strong>1</strong> comment
} else {
<strong>@comments.size</strong> comments
}
<strong>@comments.size</strong> @plural(@comments.size, "comment")
</div>
<hr/>
<div style="margin-bottom: 8px;">