summaryrefslogtreecommitdiff
path: root/templates/layout
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anata@darapsa.co.id>2021-07-05 19:18:26 +0700
committerAnatasof Wirapraja <anata@darapsa.co.id>2021-07-05 19:18:26 +0700
commit5c0fd0bc2898264048403b1ec4e88d927ae361a6 (patch)
treeae8a483c44596cd2fb4da783bd709c95b03dcf8a /templates/layout
parent98e07335ef7bc1facab6791e1c86a59cb38aef5a (diff)
move the calculation and badge inside <a> tag instead of icon
Diffstat (limited to 'templates/layout')
-rw-r--r--templates/layout/noleft8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/layout/noleft b/templates/layout/noleft
index 444b27b..134c12b 100644
--- a/templates/layout/noleft
+++ b/templates/layout/noleft
@@ -43,9 +43,10 @@
<a class="position-relative" href="[area ord/basket]">
<span class="material-icons-outlined">
shopping_bag
- [calc]
- if ([nitems] ne '0') {
- return q(
+ </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 class="visually-hidden">items in cart</span>
@@ -53,7 +54,6 @@
</div>);
}
[/calc]
- </span>
</a>
</div>
</div>