<%= meta_tags_for_article(@page) %> <%= noosfero_javascript %> <%= theme_javascript %> <%# stylesheet_import is better then stylesheet_link_tag because the stylesheet must be loaded before the page show. %> <%= # Load the principal css files: stylesheet_import( %w( common help menu article button search blocks forms login-box thickbox profiles ) ) + "\n" + stylesheet_import( %w( common help menu article button search blocks forms login-box ), :themed_source => true ) + "\n" + # Load the boxes's css file if each exists: import_blocks_stylesheets + "\n" + import_blocks_stylesheets(:themed_source => true) + "\n" + # Load the controller's css file if it exists: import_controller_stylesheets + "\n" + import_controller_stylesheets(:themed_source => true) %> <%= template_stylesheet_tag %> <%= icon_theme_stylesheet_tag %> <%= pngfix_stylesheet %> ' onload='noosfero_init();' help=<%= _('Pass the mouse over page elements to get help on them. Click the question mark icon on the top-right corner to deactivate this help window.').inspect %> onresize="registerDocumentSize()">
<%= _('Go to content') %>
BETA
<%= language_chooser(:element => 'dropdown') %>
<%# WARNING this is a horrible hack while we don't have an actual SSO system. %> <% if environment.enable_ssl && request.host != environment.default_hostname %> <%= content_tag 'script', '', :type => 'text/javascript', :src => environment.top_url(true) + '/account/user_menu' %> <% else %> <%= render :file => 'shared/user_menu' %> <% end %>
<%= _('Help') %>
<%= insert_boxes(yield) %>
<%= javascript_include_tag 'show-mouse-help' %> <%= javascript_include_tag 'noosfero-show-help' %> <% if environment.enabled?('warn_obsolete_browser') %> <% end %> <%= javascript_include_tag 'better-browser-promotion' %> <%# if you need to add HTML stuff to the layout, include it in app/views/shared/noosfero_layout_features.rhtml! %> <%= noosfero_layout_features %>