2023-02-02 11:48:33 +01:00
|
|
|
%link{:href => "https://cdn.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css", :rel => "stylesheet"}/
|
|
|
|
%script{:src => "https://cdn.jsdelivr.net/gh/mcstudios/glightbox/dist/js/glightbox.min.js"}
|
|
|
|
|
2023-01-25 21:15:54 +01:00
|
|
|
= paginate @pictures
|
|
|
|
|
2023-01-25 21:46:30 +01:00
|
|
|
.flex.justify-end.mr-10
|
2023-01-25 21:15:54 +01:00
|
|
|
= sort_link(@q, :happened ,class: 'flex flex-nowrap text-md')
|
|
|
|
.border-r-4.mx-4
|
|
|
|
= sort_link(@q, :created_at , class: 'flex flex-nowrap text-md')
|
|
|
|
|
2023-01-25 23:47:27 +01:00
|
|
|
.mx-20.grid.grid-cols-1.md:grid-cols-2.lg:grid-cols-3.2xl:grid-cols-4.gap-8.md:gap-12.lg:gap-16
|
2023-01-25 21:15:54 +01:00
|
|
|
- @pictures.each do |picture|
|
|
|
|
= render picture , picture: picture
|
|
|
|
|
|
|
|
.flex.ml-20
|
|
|
|
= link_to new_picture_path do
|
|
|
|
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
|
|
|
New Picture
|
2023-02-02 11:48:33 +01:00
|
|
|
|
|
|
|
:javascript
|
|
|
|
const lightbox = GLightbox({ });
|