From 20c5ad5a7a737d721cb39b75852a79f20502da74 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 31 Jul 2022 10:00:03 +0200 Subject: Simplified "list" list layout code --- templates/partials/list_card.html | 48 ++++++++++++--------------------------- 1 file changed, 15 insertions(+), 33 deletions(-) (limited to 'templates/partials/list_card.html') diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html index 24948a6..e12f62f 100644 --- a/templates/partials/list_card.html +++ b/templates/partials/list_card.html @@ -4,7 +4,9 @@ itemprop="dataFeedElement" itemscope itemtype="https://schema.org/$it.schema_type$" - $if(it.rel)$rel="$it.rel$"$endif$ + $if(it.rel)$ + rel="$it.rel$" + $endif$ >
$if(it.indicator)$ @@ -15,42 +17,22 @@ $endif$ -
- $if(it.subtitle)$ - $it.subtitle$ -
- $it.title$ - $if(it.draft)$Draft$endif$ -
- $elseif(it.category)$ - $it.category$ -
- $it.title$ - $if(it.draft)$Draft$endif$ -
- $elseif(it.last_update)$ - - - -
- $it.title$ - $if(it.draft)$Draft$endif$ -
- $else$ - - $it.title$ - - $if(it.draft)$Draft$endif$ +
+ + $it.title$ + + $if(it.draft)$ + Draft $endif$ -
-
- $it.title$ - $if(it.draft)$Draft$endif$
$if(it.subtitle)$ - $it.subtitle$ + + $it.subtitle$ + $elseif(it.category)$ - $it.category$ + + $it.category$ + $elseif(it.show_date)$