app/helpers/decidim/admin/application_helper.rb in decidim-admin-0.1.0 vs app/helpers/decidim/admin/application_helper.rb in decidim-admin-0.2.0

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + module Decidim module Admin # Custom helpers, scoped to the admin panel. # module ApplicationHelper @@ -11,17 +12,9 @@ include Decidim::MetaTagsHelper include Decidim::MapHelper def title current_organization.name - end - - def admin_menu_item_to(name, url, options = {}) - content_tag :li, class: options[:active_class] || active_link_to_class(url, active: options[:active], class_active: "is-active") do - active_link_to url, active: options[:active], class_active: "is-active" do - icon(options[:icon_name] || name) + I18n.t("menu.#{name}", scope: "decidim.admin") - end - end end def foundation_datepicker_locale_tag if I18n.locale != :en javascript_include_tag "datepicker-locales/foundation-datepicker.#{I18n.locale}.js"