diff --git a/app/assets/svg/icons/lucide/outline/refresh-ccw.svg b/app/assets/svg/icons/lucide/outline/refresh-ccw.svg new file mode 100644 index 00000000..9088690e --- /dev/null +++ b/app/assets/svg/icons/lucide/outline/refresh-ccw.svg @@ -0,0 +1 @@ + diff --git a/app/views/stats/index.html.erb b/app/views/stats/index.html.erb index 8d41eb92..966908be 100644 --- a/app/views/stats/index.html.erb +++ b/app/views/stats/index.html.erb @@ -34,9 +34,9 @@ <%= link_to year, "/stats/#{year}", class: 'underline hover:no-underline' %> <%= link_to '[Map]', map_url(year_timespan(year)), class: 'underline hover:no-underline' %> -
+
Last update: <%= human_date(stats.first.updated_at) %> - <%= link_to '🔄', update_year_month_stats_path(year, :all), data: { turbo_method: :put }, class: 'text-sm text-gray-500 hover:underline' %> + <%= link_to icon('refresh-ccw'), update_year_month_stats_path(year, :all), data: { turbo_method: :put }, class: 'text-sm text-gray-500 hover:text-primary' %>