mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-08 22:45:51 +01:00
Add helper which convert singular and plural.
This commit is contained in:
@@ -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;">
|
||||
|
||||
Reference in New Issue
Block a user