Skip to content

Commit

Permalink
Merge pull request AlchemyCMS#1880 from tvdeyen/fix-picture-library-s…
Browse files Browse the repository at this point in the history
…ize-filters

Respect filter and tagging params in picture archive size buttons
  • Loading branch information
tvdeyen authored Jun 16, 2020
2 parents 3072ac9 + 0ea5aa3 commit 2dd2929
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 2dd2929

Please sign in to comment.