%= stylesheet_link_tag "application" %>
<%= stylesheet_link_tag "print", :media => "print" %>
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag 'menu' %>
<%= stylesheet_link_tag 'jstoolbar' %>
<%= yield :header_tags %>
- <%= link_to l(:label_home), { :controller => 'welcome' }, :class => "icon icon-home" %>
- <%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => "icon icon-mypage" %>
- <%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects" %>
<% unless @project.nil? || @project.id.nil? %>
<% end %>
<% if loggedin? %>
- <%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => "icon icon-user" %>
<% end %>
<% if admin_loggedin? %>
<% end %>
- <%= link_to l(:label_help), { :controller => 'help', :ctrl => params[:controller], :page => params[:action] }, :onclick => "window.open(this.href); return false;", :class => "icon icon-help" %>
<% if loggedin? %>
- <%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => "icon icon-user" %>
<% else %>
- <%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => "icon icon-user" %>
<% end %>
<% if admin_loggedin? %>
<%= render :partial => 'admin/menu' %>
<% end %>
<% unless @project.nil? || @project.id.nil? %>
<% end %>
<% unless @project.nil? || @project.id.nil? %>
<%= @project.name %>
<% end %>
<% if loggedin? and @logged_in_user.memberships.length > 0 %>
<%=l(:label_my_projects) %>
<% end %>
<% if flash[:notice] %>
<%= flash[:notice] %>
<% end %>
<%= yield %>