Sha256: ff340196bdbe6477761f6791a48a72206717f9051e0642d75731689071774ecb

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 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

      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

4 entries across 4 versions & 1 rubygems

Version Path
decidim-admin-0.9.3 app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.9.2 app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.9.1 app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.9.0 app/helpers/decidim/admin/application_helper.rb