engine/app/views/locomotive/shared/_site_picker.html.haml

10 lines
391 B
Plaintext
Raw Normal View History

#sites-picker{ :style => 'display: none' }
%ul
- current_locomotive_account.sites.each do |site|
- unless current_site._id == site._id
%li
= link_to site.name, locomotive.pages_url(:host => site.full_subdomain, :port => request.port)
- if can?(:manage, Locomotive::Site)
%p.action
= link_to t('locomotive.sites_picker.new'), locomotive.new_site_url