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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user