Sha256: c5da4456dbf8626446d9e3523284e3d88ecc2206becdf4e728ef828a323dda01

Contents?: true

Size: 345 Bytes

Versions: 74

Compression:

Stored size: 345 Bytes

Contents

- unless current_user.site
  %label{:for=>'layout_site_id', :class => 'admin_only'}
    Site
    - sites = Site.all.map { |s| [s.name, s.id] }
    - selection = {:include_blank => Layout.is_shareable?}
    - selection[:selected] = current_site.id if @layout.new_record? && ! Layout.is_shareable?
    = select :layout, :site_id, sites, selection

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-7.0.2 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-7.0.1 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-7.0.0 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.3 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.2.1 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.2.2.1 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.2.0 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.1.2 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.1.1 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.0.5 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.0.4 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.0.3 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.0.2 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.0.1 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-5.6.1 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-6.0.0 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-5.6.0 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-5.5.9 app/views/admin/layouts/_choose_site.html.haml
trusty-cms-5.5.8 app/views/admin/layouts/_choose_site.html.haml