pools/gallery: allow searching for collection pools (#3992).

Default to showing only series pools when not doing a search. Otherwise,
when doing a search, show both series and collection pools.
This commit is contained in:
evazion
2018-11-15 11:38:35 -06:00
parent 4fcb82f2e6
commit 29fdfc42a4
2 changed files with 13 additions and 13 deletions

View File

@@ -37,22 +37,20 @@
</td>
</tr>
<% if path != gallery_pools_path %>
<tr>
<th><label for="search_category">Category</th>
<td>
<div class="input">
<%= select "search", "category", [["Series", "series"], ["Collection", "collection"]], :selected => params[:search][:category], :include_blank => true %>
</div>
</td>
</tr>
<% end %>
<tr>
<th><label for="search_category">Category</th>
<td>
<div class="input">
<%= select "search", "category", [["Series", "series"], ["Collection", "collection"]], :selected => params[:search][:category], :include_blank => true %>
</div>
</td>
</tr>
<tr>
<th><label for="search_order">Order</th>
<td>
<div class="input">
<%= select "search", "order", [["Last updated", "updated_at"], ["Name", "name"], ["Recently created", "created_at"], ["Post count", "post_count"]], :selected => params[:search][:order] %>
<%= select "search", "order", [["Last updated", "updated_at"], ["Name", "name"], ["Recently created", "created_at"], ["Post count", "post_count"]], :selected => params[:search][:order], :include_blank => true %>
</div>
</td>
</tr>