diff --git a/app/controllers/admin/statistics_controller.rb b/app/controllers/admin/statistics_controller.rb index 3781e29232..2d06d926bc 100644 --- a/app/controllers/admin/statistics_controller.rb +++ b/app/controllers/admin/statistics_controller.rb @@ -15,5 +15,7 @@ def index @comment_count = Comment.count @request_by_state = InfoRequest.group('described_state').count @tracks_by_type = TrackThing.group('track_type').count + + @monthly_transactions = Statistics::MonthlyTransactions.new end end diff --git a/app/views/admin/statistics/index.html.erb b/app/views/admin/statistics/index.html.erb index 7a05c48570..4471bb22f1 100644 --- a/app/views/admin/statistics/index.html.erb +++ b/app/views/admin/statistics/index.html.erb @@ -80,3 +80,27 @@ + +
+ <%= cell %> + | + <% end %> + <% else %> + <% row.each do |cell| %> + <%= tag.td cell, class: { muted: cell.to_i.zero? } %> + <% end %> + <% end %> +
---|