link to /comments in the header
This commit is contained in:
parent
d9bd724c1d
commit
2c6eeeca1b
|
@ -30,11 +30,17 @@
|
||||||
[ 255, (@traffic * 7).floor + 50.0 ].min, 0, 0) %>;" href="/"
|
[ 255, (@traffic * 7).floor + 50.0 ].min, 0, 0) %>;" href="/"
|
||||||
title="Lobsters (<%= @traffic.to_i %>)"></a>
|
title="Lobsters (<%= @traffic.to_i %>)"></a>
|
||||||
|
|
||||||
<% links = { "/" => "Home", "/newest" => "Newest Stories" } %>
|
<% links = {
|
||||||
|
"/" => "Home",
|
||||||
|
"/newest" => "Newest Stories",
|
||||||
|
"/comments" => "Newest Comments"
|
||||||
|
} %>
|
||||||
|
|
||||||
<% if @user %>
|
<% if @user %>
|
||||||
<% links.merge!({ "/threads" => "Your Threads",
|
<% links.merge!({ "/threads" => "Your Threads",
|
||||||
"/stories/new" => "Submit Story" }) %>
|
"/stories/new" => "Submit Story" }) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% links.merge!({ "/search" => "Search" }) %>
|
<% links.merge!({ "/search" => "Search" }) %>
|
||||||
|
|
||||||
<% if @cur_url.present? && !links.keys.include?(@cur_url) &&
|
<% if @cur_url.present? && !links.keys.include?(@cur_url) &&
|
||||||
|
|
Loading…
Reference in a new issue