philomena/lib/philomena_web/templates/image/index.html.slime

29 lines
1.1 KiB
Text
Raw Normal View History

2019-11-30 03:33:15 +01:00
elixir:
header = assigns[:header] || ""
params = assigns[:params] || assigns[:scope] || []
scope = assigns[:scope] || []
route = assigns[:route] || fn p -> Routes.image_path(@conn, :index, p) end
image_url = fn image -> Routes.image_path(@conn, :show, image, scope) end
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @images, route: route, params: params
info = render PhilomenaWeb.PaginationView, "_pagination_info.html", page: @images
2019-10-09 01:19:57 +02:00
2019-08-18 18:17:05 +02:00
.block#imagelist-container
2019-10-09 01:19:57 +02:00
section.block__header.flex
h1.block__header__title.hide-mobile
=> header
= pagination
2019-08-18 18:17:05 +02:00
.block__content.js-resizable-media-container
= for image <- @images do
2019-11-30 03:33:15 +01:00
= render PhilomenaWeb.ImageView, "_image_box.html", image: image, link: image_url.(image), size: assigns[:size] || :thumb, conn: @conn
2019-10-09 01:19:57 +02:00
.block__header.block__header--light.flex
= pagination
span.block__header__title
= info
.flex__right
a href="/settings/edit" title="Display Settings"
i.fa.fa-cog
span.hide-mobile.hide-limited-desktop<>
' Display Settings