Sha256: fa83f510126e9d30b6beace6282f11caa4aece0a197074dba5a2c23cb11954df

Contents?: true

Size: 360 Bytes

Versions: 32

Compression:

Stored size: 360 Bytes

Contents

module Locomotive
  class ContentLocalePickerCell < Cell::Base

    helper do
      include ::Locomotive::BaseHelper
    end

    def show(args)
      site    = args[:site]
      @locale = args[:locale].to_s

      if site.locales.empty? || site.locales.size < 2
        ''
      else
        @locales = site.locales
        render
      end
    end

  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
locomotive_cms-2.5.7 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.6 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.6.rc2 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.6.rc1 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.5 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.4 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.3 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.2 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.1 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.0 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.0.rc3 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.0.rc2 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.5.0.rc1 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.4.1 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.4.0 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.3.1 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.3.0 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.2.3 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.2.2 app/cells/locomotive/content_locale_picker_cell.rb
locomotive_cms-2.2.1 app/cells/locomotive/content_locale_picker_cell.rb