ip bans, user feedbacks: fix links to bans page in secondary links.

This commit is contained in:
evazion
2020-03-24 00:39:22 -05:00
parent 0ad5619484
commit 5cb7167a45
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
<% if policy(IpAddress).index? %>
<%= subnav_link_to "IP Addresses", ip_addresses_path %>
<% end %>
<%= subnav_link_to "Bans", ip_bans_path %>
<%= subnav_link_to "Bans", bans_path %>
<%= subnav_link_to "Feedbacks", user_feedbacks_path %>
<% if policy(IpBan).create? %>
| <%= subnav_link_to "New", new_ip_ban_path %>

View File

@@ -7,7 +7,7 @@
<% if policy(IpBan).index? %>
<%= subnav_link_to "IP Bans", ip_bans_path %>
<% end %>
<%= subnav_link_to "Bans", ip_bans_path %>
<%= subnav_link_to "Bans", bans_path %>
<% if policy(UserFeedback.new).create? %>
<% if @user_feedback.present? && policy(@user_feedback).create? %>
| <%= subnav_link_to "New", new_user_feedback_path(:user_feedback => {:user_id => @user_feedback.user_id}) %>