Permalink
Browse files

Pluralization ftw

  • Loading branch information...
1 parent 61ffdf1 commit 3740f02e6b7a837b6d8859454207992b8e1716c3 @kneath committed May 3, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 views/timeline.erb
View
@@ -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>

0 comments on commit 3740f02

Please sign in to comment.