diff options
Diffstat (limited to 'app/views/request_game/play.html.erb')
-rw-r--r-- | app/views/request_game/play.html.erb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app/views/request_game/play.html.erb b/app/views/request_game/play.html.erb new file mode 100644 index 000000000..eedf19ca2 --- /dev/null +++ b/app/views/request_game/play.html.erb @@ -0,0 +1,46 @@ +<% @title = _("Play the request categorisation game!") %> + +<div id="game_sidebar"> + <p style="text-align: center"> + <img width=250 height=125 src="http://chart.apis.google.com/chart?chs=250x125&cht=gom&chd=t:<%=@percentage%>" alt="<%=@percentage%>% of requests have been categorised"> + <br><%=pluralize(@missing, 'request')%> left to categorise / <%=@total %> total + </p> + <h2>Top recent players</h2> + <table> + <% c = 0; for classifications in @league_table_28_days %> + <tr> + <td> <%= c += 1 %>. <td> + <td> <%= user_link(classifications.user) %> </td> + <td> <%=pluralize(classifications.cnt, 'request').gsub(" ", " ")%> </td> + </tr> + <% end %> + </table> + + <h2>All time best players</h2> + <table> + <% c = 0; for classifications in @league_table_all_time %> + <tr> + <td> <%= c += 1 %>. <td> + <td> <%= user_link(classifications.user) %> </td> + <td> <%= pluralize(classifications.cnt, 'request').gsub(" ", " ")%> </td> + </tr> + <% end %> + </table> +</div> +<h2><%= _("Play the request categorisation game!")%></h2> +<p><%= _("Some people who've made requests haven't let us know whether they were +successful or not. We need <strong>your</strong> help – +choose one of these requests, read it, and let everyone know whether or not the +information has been provided. Everyone'll be exceedingly grateful.")%></p> +<% for info_request in @requests %> + <%= render :partial => 'request/request_listing_single', :locals => { :info_request => info_request } %> +<% end %> +<p id="game_buttons"> +<%= button_to _('I don\'t like these ones — give me some more!'), play_url %> +<%= button_to _('I don\'t want to do any more tidying now!'), stop_url %> +</p> +<p><%= _('Thanks for helping - your work will make it easier for everyone to find successful +responses, and maybe even let us make league tables...')%></p> + + + |