Sha256: 902de6ba16a45df5c5d79d5d8bb808cde6f289d7e5c18b2ed3f99826ad083085

Contents?: true

Size: 406 Bytes

Versions: 9

Compression:

Stored size: 406 Bytes

Contents

- unless current_user.site
  %p{:style => 'float: left; margin-right: 32px'}
    %label{:for=>"layout_site_id", :Class => "admin_only"}
      Site
    - sites = Site.find(: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

9 entries across 9 versions & 1 rubygems

Version Path
trusty-multi-site-extension-1.2.1 app/views/admin/layouts/_choose_site.html.haml
trusty-multi-site-extension-1.2.0 app/views/admin/layouts/_choose_site.html.haml
trusty-multi-site-extension-1.1.5 app/views/admin/layouts/_choose_site.html.haml
trusty-multi-site-extension-1.1.4 app/views/admin/layouts/_choose_site.html.haml
trusty-multi-site-extension-1.0.4 app/views/admin/layouts/_choose_site.html.haml
trusty-multi-site-extension-1.0.3 app/views/admin/layouts/_choose_site.html.haml
trusty-multi-site-extension-1.0.2 app/views/admin/layouts/_choose_site.html.haml
trusty-multi-site-extension-1.0.1 app/views/admin/layouts/_choose_site.html.haml
trusty-multi-site-extension-1.0.0 app/views/admin/layouts/_choose_site.html.haml