summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/layout/noleft12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/layout/noleft b/templates/layout/noleft
index ca01d60..332e907 100644
--- a/templates/layout/noleft
+++ b/templates/layout/noleft
@@ -44,6 +44,18 @@
<span class="material-icons-outlined">
shopping_bag
</span>
+ [calc]
+ if ([nitems] ne '0') {
+ return q(
+ <div>
+ <span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
+ [nitems]
+ </span>
+ <span class="visually-hidden">items in cart</span>
+ </span>
+ </div>);
+ }
+ [/calc]
</a>
</div>
</div>