Sha256: 9da11aae872b95722a69385aebbeab91282bd0bd41b5388e788b3c2e1a07c13d

Contents?: true

Size: 422 Bytes

Versions: 4

Compression:

Stored size: 422 Bytes

Contents

- if current_user.scoped_site? && defined?(Site) && defined?(controller) && controller.sited_model? && Site.several?
  .site_chooser
    %ul.nav
      %li
        = "Current Site: #{current_site.name}"
        %ul.expansion
          - current_user.sites.each do |site|
            %li
              = link_to( site.name, "#{request.path}?site_id=#{site.id}", :class => site == current_site ? 'fg site-link' : 'site-link')

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trusty-cms-7.0.9.1 app/views/admin/layouts/_site_chooser.html.haml
trusty-cms-7.0.11 app/views/admin/layouts/_site_chooser.html.haml
trusty-cms-7.0.10 app/views/admin/layouts/_site_chooser.html.haml
trusty-cms-7.0.9 app/views/admin/layouts/_site_chooser.html.haml