Skip to content

Commit 764a22a

Browse files
committed
Add print_count to workshops
1 parent e1df84b commit 764a22a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/controllers/admin/analytics_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
module Admin
2-
32
class AnalyticsController < Admin::BaseController
43
protect_from_forgery with: :null_session
54

app/views/admin/analytics/index.html.erb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@
8989
color: :events
9090
%>
9191

92+
93+
<%= render "admin/analytics/popular_list",
94+
title: "Workshop variations",
95+
records: @most_viewed_workshop_variations,
96+
path_method: :workshop_variation_path,
97+
metric: :view_count,
98+
color: :workshop_variations
99+
%>
100+
92101
<%= render "admin/analytics/popular_list",
93102
title: "Workshop variations",
94103
records: @most_viewed_workshop_variations,

0 commit comments

Comments
 (0)