<%= meta_tags_for_article(@page) %> <%= noosfero_javascript %> <%= import_blocks_stylesheets %> <%= import_controller_stylesheets %> <%= stylesheet_import( %w( common help menu article button search ), %w( blocks forms login-box thickbox profiles), template_stylesheet_path(), icon_theme_stylesheet_path(), theme_stylesheet_path(), pngfix_stylesheet_path() ) %> <%# Add custom tags/styles/etc via content_for %> <%= yield :head %> " onresize="registerDocumentSize()"> Ir para o conteúdo
<%= theme_header %>
<% if logged_in? %> <%= _('Welcome, %s.') % link_to('' + user.identifier + '', user.url, :id => "homepage-link", :title => _('Go to your homepage')) %> <% if user.is_admin?(environment) %> <%= link_to('' + _('Administration') + '', { :controller => 'admin_panel', :action => 'index' }, :id => "controlpanel", :title => _("Configure the environment")) %> <% end %> <% if (user.environment == environment) %> <%= link_to('' + _('Control panel') + '', user.admin_url, :id => "controlpanel", :title => _("Configure your personal account and content")) %> <% end %> <%= link_to('' + _('Logout') + '', { :controller => 'account', :action => 'logout'} , :id => "logout", :title => _("Leave the system")) %> <% else %> <% if params[:controller] != 'account' || params[:action] != 'signup' %> <%= _('%s or %s') % [thickbox_inline_popup_link('' + _('Login') + '', login_url, 'inlineLoginBox', :id => 'link_login'), link_to('' + _('Register') + '', :controller => 'account', :action => 'signup') ] %> <% end %> <% end %>
<%=_('Press Enter to send the search query.')%>

<%= link_to content_tag('span', environment.name), environment.top_url %>

<%= insert_boxes(yield) %>
<%= noosfero_layout_features %>