engine/app/views/admin/shared/_header.html.haml

14 lines
685 B
Plaintext
Raw Normal View History

%h1
- if current_admin.sites.size > 1
= form_tag new_admin_cross_domain_session_url, :method => 'get' do
= select_tag 'target_id', options_for_select(current_admin.sites.collect { |site| [truncate(site.name, :length => 32), site.id] }, current_site.id), :id => 'site-selector'
= submit_tag 'Switch', :style => 'display: none'
- else
= link_to current_site.name, admin_pages_url, :class => 'single'
2010-04-24 00:32:36 +00:00
#global-actions-bar
2010-07-21 23:56:42 +00:00
!= t('.welcome', :name => link_to(current_admin.name, edit_admin_my_account_url))
2010-04-24 00:32:36 +00:00
%span= '|'
= link_to t('.see'), current_site_url
2010-04-24 00:32:36 +00:00
%span= '|'
= link_to t('.logout'), destroy_admin_session_url, :confirm => t('admin.messages.confirm')