Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
displayIssueDetails: properly plurialize “comment”
Browse files Browse the repository at this point in the history
Before:

> 42 Comment(s)
> 1 Comment(s)

After:

> 42 Comments
> 1 Comment
  • Loading branch information
bfontaine committed Dec 10, 2015
1 parent bee18cc commit 0d87ec8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/gim_ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ displayIssueDetails(Issue issue) {
issueOverviewUserAvatar.src = issue.user.avatarUrl;
issueOverviewBody.innerHtml = issue.body != ""
? markdownToHtml(issue.body) : "No description provided.";
issueOverviewComment.text = "${issue.commentsCount} Comment(s)";
issueOverviewComment.text = issue.commentsCount != 1
? "${issue.commentsCount} Comments" : "1 Comment";
issueError.style.display = "none";
issueOverview.style.display = "block";
}
Expand Down

0 comments on commit 0d87ec8

Please sign in to comment.