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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user