From fde3ebeb30424401555e0506100126004562c330 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 22 Dec 2021 07:57:02 +0100 Subject: More compact list templates --- templates/layouts/categorized_list.html | 62 +++++++++------------------------ templates/layouts/list.html | 16 ++++----- 2 files changed, 23 insertions(+), 55 deletions(-) (limited to 'templates/layouts') diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index 50555f8..e0bd1db 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -13,55 +13,27 @@ $body$ $if(it.description)$ $endif$ - $if(it.layout.is_grid)$ -
+
+ $if(it.layout.is_grid)$ $it.items:partials/grid_card()$ - $if(it.omitted)$ - -
-
- $it.omitted$ more items -
- - - -
-
- $endif$ -
- $elseif(it.layout.is_gallery)$ - - $else$ -
+ $else$ $it.items:partials/list_card()$ - $if(it.omitted)$ - - + + $endif$ +
$endfor$
diff --git a/templates/layouts/list.html b/templates/layouts/list.html index 9c6b26e..40d85f0 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html @@ -5,19 +5,15 @@ $body$
- $if(list_layout.is_grid)$ -
+
+ $if(list_layout.is_grid)$ $list:partials/grid_card()$ -
- $elseif(list_layout.is_gallery)$ - - $else$ -
+ $else$ $list:partials/list_card()$ -
- $endif$ + $endif$ +
-- cgit v1.2.3-54-g00ecf