link to /comments in the header

This commit is contained in:
joshua stein 2012-09-19 13:32:52 -05:00
parent d9bd724c1d
commit 2c6eeeca1b

View file

@ -30,11 +30,17 @@
[ 255, (@traffic * 7).floor + 50.0 ].min, 0, 0) %>;" href="/"
title="Lobsters (<%= @traffic.to_i %>)"></a>
<% links = { "/" => "Home", "/newest" => "Newest Stories" } %>
<% links = {
"/" => "Home",
"/newest" => "Newest Stories",
"/comments" => "Newest Comments"
} %>
<% if @user %>
<% links.merge!({ "/threads" => "Your Threads",
"/stories/new" => "Submit Story" }) %>
<% end %>
<% links.merge!({ "/search" => "Search" }) %>
<% if @cur_url.present? && !links.keys.include?(@cur_url) &&