Sha256: 543d9b40767da506aad646715cad6cbe93a629c4088117569ac0bc2d7ad720ea

Contents?: true

Size: 691 Bytes

Versions: 5

Compression:

Stored size: 691 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # Custom helpers, scoped to the admin panel.
    #
    module ApplicationHelper
      include Decidim::LocalizedLocalesHelper
      include Decidim::TranslationsHelper
      include Decidim::HumanizeBooleansHelper
      include Decidim::AriaSelectedLinkToHelper
      include Decidim::MetaTagsHelper
      include Decidim::MapHelper
      include Decidim::Admin::LogRenderHelper

      def title
        current_organization.name
      end

      def foundation_datepicker_locale_tag
        javascript_include_tag "datepicker-locales/foundation-datepicker.#{I18n.locale}.js" if I18n.locale != :en
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-admin-0.11.2 app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.11.1 app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.11.0.pre1 app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.10.1 app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.10.0 app/helpers/decidim/admin/application_helper.rb