Sha256: bb5631895d2a97b5059e012e15327c6da1b6fc640740751215133b9552a60f8e

Contents?: true

Size: 342 Bytes

Versions: 22

Compression:

Stored size: 342 Bytes

Contents

module Locomotive
  module SitesHelper

    def ordered_current_site_locales
      current_site.locales + (Locomotive.config.site_locales - current_site.locales)
    end

    def options_for_site_locales
      Locomotive.config.site_locales.map do |locale|
        [I18n.t("locomotive.locales.#{locale}"), locale]
      end
    end

  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
locomotive_cms-2.1.4 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.1.3 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.1.2 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.1.1 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.1.0 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.3 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.2 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.1 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.0 app/helpers/locomotive/sites_helper.rb
tribeca_cms-0.1.1 app/helpers/locomotive/sites_helper.rb
tribeca_cms-2.0.0.rc12 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.0.rc12 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.0.rc11 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.0.rc10 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.0.rc9 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.0.rc8 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.0.rc7 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.0.rc6 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.0.rc5 app/helpers/locomotive/sites_helper.rb
locomotive_cms-2.0.0.rc4 app/helpers/locomotive/sites_helper.rb