Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pluralization ftw

  • Loading branch information...
commit 3740f02e6b7a837b6d8859454207992b8e1716c3 1 parent 61ffdf1
@kneath authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 views/timeline.erb
View
4 views/timeline.erb
@@ -28,10 +28,10 @@
<span class="big"><%= "+" if event.ticket_change > 0 %><%= event.ticket_change %></span>
<ul class="events">
<% if event.tickets_opened > 0 %>
- <li><strong>Opened</strong> <em class="positive"><%= event.tickets_opened %></em> tickets</li>
+ <li><strong>Opened</strong> <em class="positive"><%= event.tickets_opened %></em> ticket<%= 's' unless event.tickets_opened == 1 %></li>
<% end %>
<% if event.tickets_closed > 0 %>
- <li><strong>Closed</strong> <em class="negative"><%= event.tickets_closed %></em> tickets</li>
+ <li><strong>Closed</strong> <em class="negative"><%= event.tickets_closed %></em> ticket<%= 's' unless event.tickets_closed == 1 %></li>
<% end %>
<% if event.tickets_opened == 0 && event.tickets_closed == 0 %>
<li><strong>No changes</strong></li>
Please sign in to comment.
Something went wrong with that request. Please try again.