Skip to content

Commit

Permalink
Respect filter and tagging params in picture archive size buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Jun 16, 2020
1 parent 3072ac9 commit 0ea5aa3
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions app/views/alchemy/admin/pictures/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,38 @@
<div class="button_with_label">
<%= link_to(
render_icon('search-minus'),
alchemy.admin_pictures_path(size: "small", q: search_filter_params[:q]),
alchemy.admin_pictures_path(
size: "small",
q: search_filter_params[:q],
filter: search_filter_params[:filter],
tagged_with: search_filter_params[:tagged_with]
),
title: Alchemy.t(:small_thumbnails),
class: "icon_button"
) %>
</div>
<div class="button_with_label">
<%= link_to(
render_icon('search'),
alchemy.admin_pictures_path(size: "medium", q: search_filter_params[:q]),
alchemy.admin_pictures_path(
size: "medium",
q: search_filter_params[:q],
filter: search_filter_params[:filter],
tagged_with: search_filter_params[:tagged_with]
),
title: Alchemy.t(:medium_thumbnails),
class: "icon_button"
) %>
</div>
<div class="button_with_label">
<%= link_to(
render_icon('search-plus'),
alchemy.admin_pictures_path(size: "large", q: search_filter_params[:q]),
alchemy.admin_pictures_path(
size: "large",
q: search_filter_params[:q],
filter: search_filter_params[:filter],
tagged_with: search_filter_params[:tagged_with]
),
title: Alchemy.t(:big_thumbnails),
class: "icon_button"
) %>
Expand Down

0 comments on commit 0ea5aa3

Please sign in to comment.