diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layout/noleft | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/layout/noleft b/templates/layout/noleft index 332e907..0814bcc 100644 --- a/templates/layout/noleft +++ b/templates/layout/noleft @@ -43,19 +43,19 @@ <a class="navbar-icon-link" href="[area ord/basket]"> <span class="material-icons-outlined"> shopping_bag + [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] </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> |