This commit is contained in:
albert
2013-03-05 19:50:01 -05:00
parent a98af2f19a
commit f974ba68db

View File

@@ -1,5 +1,6 @@
<% content_for(:secondary_links) do %> <% content_for(:secondary_links) do %>
<menu> <menu>
<% if CurrentUser.is_privileged? %>
<% if @user_feedback %> <% if @user_feedback %>
<li><%= link_to "New", new_user_feedback_path(:user_feedback => {:user_id => @user_feedback.user_id}) %></li> <li><%= link_to "New", new_user_feedback_path(:user_feedback => {:user_id => @user_feedback.user_id}) %></li>
<% elsif params[:search] && params[:search][:user_id] %> <% elsif params[:search] && params[:search][:user_id] %>
@@ -7,6 +8,7 @@
<% else %> <% else %>
<li><%= link_to "New", new_user_feedback_path %></li> <li><%= link_to "New", new_user_feedback_path %></li>
<% end %> <% end %>
<% end %>
<li><%= link_to "Listing", user_feedbacks_path %></li> <li><%= link_to "Listing", user_feedbacks_path %></li>
</menu> </menu>
<% end %> <% end %>