% if @meta_tags %> <% @meta_tags.each do |k,v| %>
<% end %> <% end %>
<% if @short_url %>
<% end %>
<%= @title.present? ? "#{@title} | " : "" %><%= Rails.application.name %>
<%= stylesheet_link_tag "application", :media => "all" %> <% if @user %> <%= javascript_include_tag "application" %> <% end %> <%= csrf_meta_tags %> <% if @rss_link %>
<% end %> <% if @comments_rss_link %>
<% end %>
"><%= image_tag "logo-journal-du-hacker-middle.png" %>
<% links = { "/" => @cur_url == "/" ? Rails.application.name : t('.homelink'), "/recent" => t('.recentlink'), "/comments" => t('.commentslink') } %> <% if @user && @user.can_submit_stories? %> <% links.merge!({ "/threads" => t('.yourthreadslink'), "/stories/new" => t('.submitstorylink') }) %> <% end %> <% links.merge!({ "/search" => t('.searchlink') }) %> <% if !@user %> <% links.merge!({ "/invitations/request" => t('.invitationlink') }) %> <% end %> <% if @cur_url.present? && !links.keys.include?(@cur_url) && @heading.present? %>
<%= @heading %>
<% end %>
<% links.each do |u,v| %>
><%= v %>
<% end %>
><%= t('.filterslink') %>
<% if @user %> <% if (count = @user.unread_message_count) > 0 %>
"><%= t(".newmessagelink", :count => count) %>
<% else %>
><%= t('.messageslink') %>
<% end %>
><%= @user.username %> (<%= @user.karma %>)
<%= link_to t('.logoutlink'), { :controller => "login", :action => "logout" }, :data => { :confirm => t('.confirmlogoutlink') }, :method => "post" %> <% else %>
<%= t('.loginlink') %>
<% end %>
<% [ :error, :success, :notice ].each do |f| %> <% if flash[f].present? %>
<%= flash[f] %>
<% end %> <% end %> <%= yield %>