Sha256: a2c1af17989308633645fbf9414b8ddc99485bc5d8eb999497839f46b9f5dce9

Contents?: true

Size: 667 Bytes

Versions: 50

Compression:

Stored size: 667 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
        if I18n.locale != :en
          javascript_include_tag "datepicker-locales/foundation-datepicker.#{I18n.locale}.js"
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
decidim-admin-0.4.0 app/helpers/decidim/admin/application_helper.rb
decidim-0.4.0 decidim-admin/app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.3.2 app/helpers/decidim/admin/application_helper.rb
decidim-0.3.2 decidim-admin/app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.3.1 app/helpers/decidim/admin/application_helper.rb
decidim-0.3.1 decidim-admin/app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.3.0 app/helpers/decidim/admin/application_helper.rb
decidim-0.3.0 decidim-admin/app/helpers/decidim/admin/application_helper.rb
decidim-admin-0.2.0 app/helpers/decidim/admin/application_helper.rb
decidim-0.2.0 decidim-admin/app/helpers/decidim/admin/application_helper.rb