From ab5e589a8559eda788a619bf76d67b40d6b8db55 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 28 Jul 2022 11:30:55 +0200 Subject: Improved draft badge --- templates/partials/gallery_card.html | 28 +++++++++++++++++++--------- templates/partials/grid_card.html | 23 ++++++++++++++--------- templates/partials/list_card.html | 23 +++++++++++++++-------- 3 files changed, 48 insertions(+), 26 deletions(-) diff --git a/templates/partials/gallery_card.html b/templates/partials/gallery_card.html index e319fa4..f040952 100644 --- a/templates/partials/gallery_card.html +++ b/templates/partials/gallery_card.html @@ -1,4 +1,3 @@ -$if(it.url)$ $if(it.thumbnail)$ $endif$ + $if(it.draft)$ +
+ Draft +
+ $endif$
- $if(it.draft)$ - $it.title$ -
Draft
- $elseif(it.subtitle)$ - $it.title$ + $if(it.subtitle)$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$it.subtitle$ $elseif(it.category)$ $it.category$ - $it.title$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$elseif(it.show_date)$ - $it.title$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$else$ $it.title$ + $if(it.draft)$Draft$endif$ $endif$
$if(it.post_icon)$ @@ -60,4 +71,3 @@ $if(it.thumbnail)$
$endif$ -$endif$ diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html index 8b65320..ab6dbbc 100644 --- a/templates/partials/grid_card.html +++ b/templates/partials/grid_card.html @@ -1,4 +1,3 @@ -$if(it.url)$ $endif$
- $if(it.draft)$ - $it.title$ -
Draft
- $elseif(it.subtitle)$ - $it.title$ + $if(it.subtitle)$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$it.subtitle$ $elseif(it.category)$ $it.category$ - $it.title$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$elseif(it.show_date)$ - $it.title$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$else$ $it.title$ + $if(it.draft)$Draft$endif$ $endif$
$if(it.post_icon)$ @@ -46,4 +52,3 @@ $if(it.url)$ $endif$
-$endif$ diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html index 0695eed..a89193a 100644 --- a/templates/partials/list_card.html +++ b/templates/partials/list_card.html @@ -1,4 +1,3 @@ -$if(it.url)$ $if(it.subtitle)$ $it.subtitle$ - $it.title$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$elseif(it.category)$ $it.category$ - $it.title$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$elseif(it.last_update)$ - $it.title$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$else$ $it.title$ + $if(it.draft)$Draft$endif$ $endif$
$it.title$ + $if(it.draft)$Draft$endif$
- $if(it.draft)$ -
Draft
- $elseif(it.subtitle)$ + $if(it.subtitle)$ $it.subtitle$ $elseif(it.category)$ $it.category$ @@ -57,4 +65,3 @@ $if(it.url)$ $endif$
-$endif$ -- cgit v1.2.3-70-g09d2