aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-04-16 17:21:29 +0100
committerGareth Rees <gareth@mysociety.org>2015-04-16 17:21:29 +0100
commit10d060fed2acbca06abd37dd30de41aa6185a80d (patch)
tree4bdbc2b70354cba223e046c654bdd1e6419cef6d
parente7fe4eadc37c23577c94b35aa913676edeb22894 (diff)
parent37c6065ca4a11fc40d6f361cbd2e4f779541dd14 (diff)
Merge remote-tracking branch 'openaustralia/categorisation-game-mixed-content' into rails-3-develop
-rw-r--r--app/views/request_game/play.html.erb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/request_game/play.html.erb b/app/views/request_game/play.html.erb
index 544274e93..783bb7f00 100644
--- a/app/views/request_game/play.html.erb
+++ b/app/views/request_game/play.html.erb
@@ -2,7 +2,12 @@
<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">
+ <%=
+ image_tag "https://chart.googleapis.com/chart?chs=250x125&cht=gom&chd=t:#{@percentage}",
+ :size => "250x125",
+ :alt => "A chart showing #{@percentage}% of requests have been categorised",
+ :title => "#{@percentage}% of requests have been categorised"
+ %>
<br><%=pluralize(@missing, 'request')%> left to categorise / <%=@total %> total
</p>
<h2>Top recent players</h2>