Skip to content

Commit c302ef3

Browse files
Keep graphs in main menu if not signed in
1 parent e46972f commit c302ef3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/views/layouts/application.html.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
5252
<ul class="nav navbar-nav">
5353
<%= nav_link PostsController %>
54+
<% if !user_signed_in? %>
55+
<%= nav_link GraphsController, label: 'Graphs' %>
56+
<% end %>
5457
<li class='<%= (controller.class == DashboardController && controller.action_name == :index) ? "active" : "" %>'><%= link_to "reasons", reasons_path %></li>
5558
<% Rack::MiniProfiler.step('Rendering: layouts/application/nav/review') do %>
5659
<% if user_signed_in? && current_user.has_role?("reviewer") %>

0 commit comments

Comments
 (0)