Skip to content

Commit

Permalink
Debug 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Jan 19, 2017
1 parent 264ace5 commit 0476c5c
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions app/views/_user_util_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,40 @@
<div class="navbar-right">

<ul class="nav navbar-nav">
<%= render_nav_actions do |config, action|%>
<li><%= action %></li>
<% if current_user %>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><%=current_user%> <b class="caret"></b></a>
<ul class="dropdown-menu">
<% if current_exhibit and can? :curate, current_exhibit %>
<li>
<%= link_to t('spotlight.dashboards.show.header'), spotlight.exhibit_dashboard_path(current_exhibit) %>
</li>
<li class="divider"></li>
<% end %>
<% if can? :create, Spotlight::Exhibit %>
<li>
<%= link_to t(:'helpers.action.spotlight/exhibit.create'), spotlight.new_exhibit_path %>
</li>
<li class="divider"></li>
<% end %>

<li>
<%= link_to "Change Password", main_app.edit_user_registration_path %>
</li>
<li>
<%= link_to t('spotlight.header_links.logout'), main_app.destroy_user_session_path %>
</li>
</ul>
</li>
<% else %>
<li>
<%= link_to t('spotlight.header_links.login'), main_app.new_user_session_path %>
</li>
<% end %>
<% if current_exhibit and show_contact_form? %>
<li>
<%= link_to t('spotlight.header_links.contact'), spotlight.new_exhibit_contact_form_path(current_exhibit), data: {behavior: 'contact-link', target: 'report-problem-form' } %>
</li>
<% end %>
</ul>

</div>

0 comments on commit 0476c5c

Please sign in to comment.