From ac027192285ad741b3ac1b837e1c363beb8f3791 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 14 Nov 2021 09:28:25 +0100 Subject: Generate special list metadata --- templates/base.html | 4 +- templates/layouts/categorized_list.html | 86 ++++------------------------ templates/layouts/deep_categorized_list.html | 54 ----------------- templates/layouts/list.html | 64 +-------------------- templates/partials/grid_card.html | 33 +++++++++++ templates/partials/list_card.html | 34 +++++++++++ 6 files changed, 82 insertions(+), 193 deletions(-) delete mode 100644 templates/layouts/deep_categorized_list.html create mode 100644 templates/partials/grid_card.html create mode 100644 templates/partials/list_card.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index ede7941..eb088c4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -63,9 +63,7 @@
- $if(layout.is_deep_categorized_list)$ -${layouts/deep_categorized_list()} - $elseif(layout.is_categorized_list)$ + $if(layout.is_categorized_list)$ ${layouts/categorized_list()} $elseif(layout.is_list)$ ${layouts/list()} diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index ad510ae..aea8863 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -6,80 +6,18 @@ $body$ diff --git a/templates/layouts/deep_categorized_list.html b/templates/layouts/deep_categorized_list.html deleted file mode 100644 index eec16c9..0000000 --- a/templates/layouts/deep_categorized_list.html +++ /dev/null @@ -1,54 +0,0 @@ -
- - - -
- - diff --git a/templates/layouts/list.html b/templates/layouts/list.html index b4647a1..7a9d573 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html @@ -8,71 +8,11 @@ $body$ diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html new file mode 100644 index 0000000..25c2271 --- /dev/null +++ b/templates/partials/grid_card.html @@ -0,0 +1,33 @@ + + $if(it.indicator)$ +
+ $endif$ + $if(it.icon)$ + + + + $endif$ +
+ $if(it.subtitle)$ + $it.subtitle$ + $it.title$ + $elseif(it.date)$ + + $it.title$ + $else$ + $it.title$ + $endif$ +
+ $if(it.post_icon)$ + + + + $endif$ +
diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html new file mode 100644 index 0000000..644e0d3 --- /dev/null +++ b/templates/partials/list_card.html @@ -0,0 +1,34 @@ + + $if(it.indicator)$ +
+ $endif$ + $if(it.icon)$ + + + + $endif$ +
+ $it.title$ +
+ $if(it.subtitle)$ +
+ + $it.subtitle$ + +
+ $elseif(it.date)$ + + $endif$ + $if(it.post_icon)$ + + + + $endif$ +
-- cgit v1.2.3-70-g09d2