also filter inclusion on dropdown; explicit not found message

This commit is contained in:
byte[] 2019-12-16 01:15:59 -05:00
parent c70e2e48d1
commit a09d0d0a18
2 changed files with 9 additions and 4 deletions

View file

@ -35,8 +35,13 @@ elixir:
= pagination
.block__content.js-resizable-media-container
= for gallery <- @galleries do
= render PhilomenaWeb.GalleryView, "_gallery.html", gallery: gallery, conn: @conn
= if Enum.any?(@galleries) do
= for gallery <- @galleries do
= render PhilomenaWeb.GalleryView, "_gallery.html", gallery: gallery, conn: @conn
- else
.block.block--fixed.block--no-margin.block--warning
' No galleries found!
.block__header.block__header--light
= pagination
= pagination

View file

@ -8,7 +8,7 @@
.block
.block__content.add-to-gallery-list
.block__list
a.block__list__link.primary href=Routes.gallery_path(@conn, :index, include_image: @image.id)
a.block__list__link.primary href=Routes.gallery_path(@conn, :index, gallery: [include_image: @image.id])
i.fa.fa-table>
span.hide-mobile Featured in