include rank in wishlist, moving items up/down happens during animation instead of after

This commit is contained in:
Wingy 2021-09-13 22:30:16 -04:00
parent 2a5240a1ee
commit 1226ff298f
2 changed files with 25 additions and 7 deletions

View file

@ -17,6 +17,7 @@ block content
.box
table.table.has-mobile-cards
thead
th #
th(style='width: 15%;') Image
th(style='width: 25%;') Name
th(style='width: 50%;') Note
@ -34,6 +35,7 @@ block content
each item, index in wishlist
if req.user._id === item.addedBy || req.params.user !== req.user._id
tr(id=item.id)
td.rank= index + 1
td
figure(style='width: 100%; margin: 0;')
img(src=item.image, style='width: 100%; max-height: 20em; object-fit: contain;')