From 68dc5757b3a395ba89dfcc81103a5fbd31f03b2c Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 12 Jun 2022 13:18:46 +0200 Subject: Better list layouts, added 'random' link for Fediring --- templates/layouts/categorized_list.html | 10 +++++--- templates/layouts/list.html | 8 ++++-- templates/partials/small_gallery_card.html | 39 ------------------------------ 3 files changed, 12 insertions(+), 45 deletions(-) delete mode 100644 templates/partials/small_gallery_card.html (limited to 'templates') diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index e8466f7..3fabd16 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -30,11 +30,13 @@ $body$ $endif$
- $if(it.layout.is_grid)$ + $if(it.layout.is_grid-2)$ $it.items:partials/grid_card()$ - $elseif(it.layout.is_small-gallery)$ - $it.items:partials/small_gallery_card()$ - $elseif(it.layout.is_gallery)$ + $elseif(it.layout.is_grid-3)$ + $it.items:partials/grid_card()$ + $elseif(it.layout.is_gallery-2)$ + $it.items:partials/gallery_card()$ + $elseif(it.layout.is_gallery-3)$ $it.items:partials/gallery_card()$ $else$ $it.items:partials/list_card()$ diff --git a/templates/layouts/list.html b/templates/layouts/list.html index 88102b9..ebbc2d4 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html @@ -7,9 +7,13 @@ $body$
- $if(list_layout.is_grid)$ + $if(list_layout.is_grid-2)$ $list:partials/grid_card()$ - $elseif(list_layout.is_gallery)$ + $elseif(list_layout.is_grid-3)$ + $list:partials/grid_card()$ + $elseif(list_layout.is_gallery-2)$ + $list:partials/gallery_card()$ + $elseif(list_layout.is_gallery-3)$ $list:partials/gallery_card()$ $else$ $list:partials/list_card()$ diff --git a/templates/partials/small_gallery_card.html b/templates/partials/small_gallery_card.html deleted file mode 100644 index 921d612..0000000 --- a/templates/partials/small_gallery_card.html +++ /dev/null @@ -1,39 +0,0 @@ -$if(it.url)$ -$if(it.thumbnail)$ - -
-
- Preview thumbnail of "$it.title$" -
-
-
-
- $if(it.subtitle)$ - $it.title$ - $it.subtitle$ - $elseif(it.category)$ - $it.category$ - $it.title$ - $elseif(it.date)$ - - $it.title$ - $else$ - $it.title$ - $endif$ -
-
-
-$endif$ -$endif$ -- cgit v1.2.3-54-g00ecf