diff options
author | Volpeon <git@volpeon.ink> | 2022-07-28 11:30:55 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-07-28 11:30:55 +0200 |
commit | ab5e589a8559eda788a619bf76d67b40d6b8db55 (patch) | |
tree | 8d32076f36e40234ef16751681d96e69fe0074fd /templates/partials/gallery_card.html | |
parent | Fix blobfox hashes (diff) | |
download | volpeon.ink-ab5e589a8559eda788a619bf76d67b40d6b8db55.tar.gz volpeon.ink-ab5e589a8559eda788a619bf76d67b40d6b8db55.tar.bz2 volpeon.ink-ab5e589a8559eda788a619bf76d67b40d6b8db55.zip |
Improved draft badge
Diffstat (limited to 'templates/partials/gallery_card.html')
-rw-r--r-- | templates/partials/gallery_card.html | 28 |
1 files changed, 19 insertions, 9 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 @@ | |||
1 | $if(it.url)$ | ||
2 | $if(it.thumbnail)$ | 1 | $if(it.thumbnail)$ |
3 | <a | 2 | <a |
4 | href="$it.url.rel$" | 3 | href="$it.url.rel$" |
@@ -29,27 +28,39 @@ $if(it.thumbnail)$ | |||
29 | <use href="$assets.icons_svg$#$it.icon$"></use> | 28 | <use href="$assets.icons_svg$#$it.icon$"></use> |
30 | </svg> | 29 | </svg> |
31 | $endif$ | 30 | $endif$ |
31 | $if(it.draft)$ | ||
32 | <div class="l-media__block"> | ||
33 | <span class="o-badge">Draft</span> | ||
34 | </div> | ||
35 | $endif$ | ||
32 | <div class="l-media__block l-media__block--main"> | 36 | <div class="l-media__block l-media__block--main"> |
33 | $if(it.draft)$ | 37 | $if(it.subtitle)$ |
34 | <strong class="u-d-block">$it.title$</strong> | 38 | <div> |
35 | <div><span class="o-badge">Draft</span></div> | 39 | <strong>$it.title$</strong> |
36 | $elseif(it.subtitle)$ | 40 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ |
37 | <strong class="u-d-block">$it.title$</strong> | 41 | </div> |
38 | <small class="u-d-block">$it.subtitle$</small> | 42 | <small class="u-d-block">$it.subtitle$</small> |
39 | $elseif(it.category)$ | 43 | $elseif(it.category)$ |
40 | <small class="u-d-block">$it.category$</small> | 44 | <small class="u-d-block">$it.category$</small> |
41 | <strong class="u-d-block">$it.title$</strong> | 45 | <div> |
46 | <strong>$it.title$</strong> | ||
47 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | ||
48 | </div> | ||
42 | $elseif(it.show_date)$ | 49 | $elseif(it.show_date)$ |
43 | <small class="u-d-block"> | 50 | <small class="u-d-block"> |
44 | <time datetime="$it.last_update.yyyy_mm_dd$" itemprop="dateCreated"> | 51 | <time datetime="$it.last_update.yyyy_mm_dd$" itemprop="dateCreated"> |
45 | $it.last_update.long$ | 52 | $it.last_update.long$ |
46 | </time> | 53 | </time> |
47 | </small> | 54 | </small> |
48 | <strong class="u-d-block">$it.title$</strong> | 55 | <div> |
56 | <strong>$it.title$</strong> | ||
57 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | ||
58 | </div> | ||
49 | $else$ | 59 | $else$ |
50 | <span class="p-name" itemprop="name headline"> | 60 | <span class="p-name" itemprop="name headline"> |
51 | $it.title$ | 61 | $it.title$ |
52 | </span> | 62 | </span> |
63 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | ||
53 | $endif$ | 64 | $endif$ |
54 | </div> | 65 | </div> |
55 | $if(it.post_icon)$ | 66 | $if(it.post_icon)$ |
@@ -60,4 +71,3 @@ $if(it.thumbnail)$ | |||
60 | </div> | 71 | </div> |
61 | </a> | 72 | </a> |
62 | $endif$ | 73 | $endif$ |
63 | $endif$ | ||