diff options
author | Henare Degan <henare.degan@gmail.com> | 2015-04-15 11:38:15 +1000 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2015-04-15 11:38:15 +1000 |
commit | 4b934c7768ed050ca2fbd6cc5d85fa0b3b285a88 (patch) | |
tree | e59d9e07ccd9a0e883f21c002c2943751991889d | |
parent | f01a67d77263eda4d4b5dae839e461bb657f0b3c (diff) |
Add title attribute so you get a tooltip when hovering over chart
-rw-r--r-- | app/views/request_game/play.html.erb | 7 |
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 ae89ee40d..93e95c09b 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"> - <%= image_tag "https://chart.googleapis.com/chart?chs=250x125&cht=gom&chd=t:#{@percentage}", :size => "250x125", :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", + :title => "#{@percentage}% of requests have been categorised" + %> <br><%=pluralize(@missing, 'request')%> left to categorise / <%=@total %> total </p> <h2>Top recent players</h2> |