Class: Decidim::Votings::CensusMenu
- Inherits:
-
Object
- Object
- Decidim::Votings::CensusMenu
- Defined in:
- lib/decidim/votings/census_menu.rb
Class Method Summary collapse
Class Method Details
.register_admin_voting_menu! ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/decidim/votings/census_menu.rb', line 6 def self. Decidim. :admin_voting_menu do || .add_item :voting_census, I18n.t("census", scope: "decidim.votings.admin.menu.votings_submenu"), decidim_admin_votings.voting_census_path(current_participatory_space), active: is_active_link?(decidim_admin_votings.voting_census_path(current_participatory_space)), icon_name: "mail-line", if: allowed_to?(:manage, :census) end end |