diff options
author | Anatasof Wirapraja <anata@darapsa.co.id> | 2021-07-05 19:18:26 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anata@darapsa.co.id> | 2021-07-05 19:18:26 +0700 |
commit | 5c0fd0bc2898264048403b1ec4e88d927ae361a6 (patch) | |
tree | ae8a483c44596cd2fb4da783bd709c95b03dcf8a /templates/layout/noleft | |
parent | 98e07335ef7bc1facab6791e1c86a59cb38aef5a (diff) |
move the calculation and badge inside <a> tag instead of icon
Diffstat (limited to 'templates/layout/noleft')
-rw-r--r-- | templates/layout/noleft | 8 |
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> |