Adds shared/filter_subnav partial to DRY filters
This commit is contained in:
@@ -1,17 +1,6 @@
|
||||
<h2><%= t("admin.comments.index.title") %></h2>
|
||||
|
||||
<dl class="sub-nav">
|
||||
<dt><%= t("admin.comments.index.filter") %>:</dt>
|
||||
|
||||
<% @valid_filters.each do |filter| %>
|
||||
<% if @current_filter == filter %>
|
||||
<dd class="active"><%= t("admin.comments.index.filters.#{filter}") %></dd>
|
||||
<% else %>
|
||||
<dd><%= link_to t("admin.comments.index.filters.#{filter}"),
|
||||
current_path_with_query_params(filter: filter) %></dd>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</dl>
|
||||
<%= render 'shared/filter_subnav', i18n_namespace: "admin.comments.index" %>
|
||||
|
||||
<h3><%= page_entries_info @comments %></h3>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user