<%# stylesheet_import is better then stylesheet_link_tag because the stylesheet must be loaded before the page show. %> <%= stylesheet_import %w( common help menu article button search blocks forms login-box ) %> <%= import_blocks_stylesheets %> <%= # Load the controller's css file if it exists: css = "controller_"+ @controller.controller_name() +".css" stylesheet_link_tag( css ) if File.exists?( "public/stylesheets/"+css ) %> <%# FIXME %> <%= stylesheet_link_tag '/designs/templates/default/stylesheets/style.css' %> <%= stylesheet_link_tag '/designs/icons/default/style.css' %> <%= javascript_include_tag(:defaults) %> <%= javascript_include_tag 'menu' %> <%= javascript_include_tag 'auto-open-menu' %> <%= include_lightbox_header %> <%# cms stuff %> <% if params[:controller] == 'cms' %> <%= javascript_include_tag 'cms' %> <% end %> > <% unless flash[:notice].nil? %>
<%= flash[:notice] %> <%= javascript_tag(visual_effect(:fade, "notice", :duration => 15)) %>
<% end %>
<%= _('Go to content') %>
<% if @category -%> <%= @category.full_name(" → ") %> <% end -%> <%= javascript_tag(visual_effect(:fade, "path_category", :duration => 10)) %>
BETA
<%= render :file => 'shared/user_menu' %> <%= lightbox_link_to ''+ _('Search'), { :controller => 'search', :action => 'popup' }, :id => 'open_search' %>
<%= _('Help') %>
<% if @controller.send(:boxes_editor?) %> <%= yield %> <%= display_boxes_editor(@controller.boxes_holder) %> <% else %> <% if uses_design_blocks? %> <%= display_boxes(@controller.boxes_holder, yield) %> <% else %> <%= yield %> <% end %> <% end %>
<%= javascript_include_tag 'show-mouse-help' %> <%= javascript_include_tag 'noosfero-show-help' %> <%= javascript_tag('noosferoHelpInit(%s, %s)' % [ _('Do you want to activate the automatic help mode?').inspect, _('If needed, you can activate the automatic help mode by clicking the question mark symbol in the top-right corner').inspect ]) %> <%= javascript_include_tag 'better-browser-promotion' %>