Add a chart showing all events in admin stats

Not sure it's useful, but it makes the main admin stats page a bit more
interesting.
This commit is contained in:
Javi Martín
2024-04-25 02:11:16 +02:00
parent 14454bdd45
commit b5d12959a0
11 changed files with 101 additions and 25 deletions

View File

@@ -12,10 +12,6 @@ class Admin::Stats::EventLinksComponent < ApplicationComponent
Ahoy::Chart.new(event).title
end
def title
t("admin.stats.graph.title")
end
def links
event_names.map do |event|
[link_text(event), graph_admin_stats_path(event: event)]