From df0d66503beae40c72f8a36da32fe9ac47617b0d Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Fri, 22 Nov 2024 12:33:59 +0000 Subject: [PATCH] Remove broken Google Chart Has been deprecated since 2012 and they've actually removed it over the last year. Would be nice to replace with something else, but for now this just removes the broken element. Fixes https://github.com/mysociety/alaveteli/issues/2366 --- app/views/request_game/play.html.erb | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/app/views/request_game/play.html.erb b/app/views/request_game/play.html.erb index e120b65481..98edff6d37 100644 --- a/app/views/request_game/play.html.erb +++ b/app/views/request_game/play.html.erb @@ -2,15 +2,12 @@

- <%= 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" %> -
<%= n_("{{number_of_requests}} request left to categorise / {{total_number_of_requests}} total", - "{{number_of_requests}} requests left to categorise / {{total_number_of_requests}} total", - @missing, - :number_of_requests => number_with_delimiter(@missing), - :total_number_of_requests => number_with_delimiter(@total)) %> +
+ <%= n_('{{number_of_requests}} request left to categorise / {{total_number_of_requests}} total', + '{{number_of_requests}} requests left to categorise / {{total_number_of_requests}} total', + @missing, + number_of_requests: number_with_delimiter(@missing), + total_number_of_requests: number_with_delimiter(@total)) %>

<%= _("Top recent players") %>