aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2015-04-15 11:31:56 +1000
committerHenare Degan <henare.degan@gmail.com>2015-04-15 11:31:56 +1000
commitf01a67d77263eda4d4b5dae839e461bb657f0b3c (patch)
treeec679b0ef89f2d0060de6d40dcbc61e4e2dfe1fd
parent0138c9bdf79b469742de83e7cf6a0443c0a275be (diff)
Use Rails image tag helper
Which also generates valid HTML by escaping the ampersands in the src attribute.
-rw-r--r--app/views/request_game/play.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/request_game/play.html.erb b/app/views/request_game/play.html.erb
index ff536bb7e..ae89ee40d 100644
--- a/app/views/request_game/play.html.erb
+++ b/app/views/request_game/play.html.erb
@@ -2,7 +2,7 @@
<div id="game_sidebar">
<p style="text-align: center">
- <img width=250 height=125 src="https://chart.googleapis.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 => "#{@percentage}% of requests have been categorised" %>
<br><%=pluralize(@missing, 'request')%> left to categorise / <%=@total %> total
</p>
<h2>Top recent players</h2>