Create SDG stats page

This commit is contained in:
Senén Rodero Rodríguez
2021-01-21 14:56:30 +01:00
parent 4c2d918bb5
commit 9b2d349e21
9 changed files with 57 additions and 0 deletions

View File

@@ -90,6 +90,10 @@ class Admin::StatsController < Admin::BaseController
@participants = ::Poll::Voter.where(poll: @polls)
end
def sdg
@goals = SDG::Goal.order(:code)
end
private
def voters_in_heading(heading)