From 2c6eeeca1b44cc014a1de1113fb94157a992c451 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Wed, 19 Sep 2012 13:32:52 -0500 Subject: [PATCH] link to /comments in the header --- app/views/layouts/application.html.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 13cc344..fc1822c 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -30,11 +30,17 @@ [ 255, (@traffic * 7).floor + 50.0 ].min, 0, 0) %>;" href="/" title="Lobsters (<%= @traffic.to_i %>)"> - <% 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) &&