Extract component to render links to event stats

This commit is contained in:
Javi Martín
2024-04-23 23:51:05 +02:00
parent 646dccca0a
commit 4e9ed4dfa6
4 changed files with 24 additions and 14 deletions

View File

@@ -114,12 +114,7 @@
</div>
<% @event_names.each do |event| %>
<h3>
<%= link_to graph_link_text(event),
graph_admin_stats_path(event: event) %>
</h3>
<% end %>
<%= render Admin::Stats::EventLinksComponent.new(@event_names) %>
<% if feature?(:budgets) %>
<h2><%= t "admin.stats.show.budgets_title" %></h2>