blob: e77e0257d1d55cec87df41b4165085c4002d35d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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!'), categorise_play_url %>
<%= button_to _('I don\'t want to do any more tidying now!'), categorise_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>
|