Sha256: 168ae171d1457e0914a46e2a19cf624db0cb4f8e129fce19761a72feb682a816
Contents?: true
Size: 595 Bytes
Versions: 7
Compression:
Stored size: 595 Bytes
Contents
# frozen_string_literal: true module Decidim module Votings class PollingOfficerZoneMenu def self.register_user_menu! Decidim.menu :user_menu do |menu| menu.add_item :decidim_votings_polling_officer_zone, I18n.t("menu.polling_officer_zone", scope: "decidim.votings.polling_officer_zone"), decidim.decidim_votings_polling_officer_zone_path, active: :inclusive, if: Decidim::Votings::PollingOfficer.polling_officer?(current_user) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems