Update comments label in widget (#11196)

* Update comments label in widget

* Refactor pluralization
This commit is contained in:
Lisa Sy 2020-11-02 11:17:19 -08:00 committed by GitHub
parent 669d411feb
commit 6a79c85e6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
<% if show_comment_count %>
<div class="crayons-link__secondary">
<% if plucked_article[2] > 0 %>
Comments: <%= plucked_article[2] %>
<%= pluralize(plucked_article[2], "comment") %>
<% else %>
<span class="crayons-indicator crayons-indicator--accent">New</span>
<% end %>