aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-03-06 12:51:41 +0000
committerLouise Crow <louise.crow@gmail.com>2015-04-28 09:07:18 +0100
commite2011b5aa8dfc276d289608f5f92a2804f3b6647 (patch)
treee537be886e0c2180b5fc8b1edfa30b999f822cf7
parent18386e60dfebcf74673ac694962b975cb96e91f8 (diff)
Add text for people wanting to know
-rw-r--r--app/views/widgets/show.html.erb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/widgets/show.html.erb b/app/views/widgets/show.html.erb
index 8722dd664..5b25514d7 100644
--- a/app/views/widgets/show.html.erb
+++ b/app/views/widgets/show.html.erb
@@ -47,9 +47,10 @@
<% end %>
</div>
</div>
- <div class="alaveteli-widget__count">
- <%= TrackThing.count(:all, :conditions => ["info_request_id = ?", @info_request.id]) + 1 + WidgetVote.count(:all, :conditions => ["info_request_id = ?", @info_request.id]) %>
- </div>
+
+ <% count = TrackThing.count(:all, :conditions => ["info_request_id = ?", @info_request.id]) + 1 + WidgetVote.count(:all, :conditions => ["info_request_id = ?", @info_request.id]) %>
+ <%= n_('<div class="alaveteli-widget__count">{{count}}</div> <div class="alaveteli-widget__people">person wants to know</div>', '<div class="alaveteli-widget__count">{{count}}</div> <div class="alaveteli-widget__people">people want to know</div>', count, :count => count) %>
+
</div>
<%
if @user