christmas/views/wishlists.pug
2018-11-23 17:29:40 -05:00

13 lines
No EOL
470 B
Text

extends layout.pug
block content
a.button(href=`/wishlist/${req.user._id}`) My Wishlist
ul.noStyle.noLeftMargin
each user in users
if req.user._id !== user.id
li
a(href=`/wishlist/${user.id}`)
.box
span= user.id
span= `: ${totals(user.doc.wishlist).pledged}/${user.doc.wishlist.length}`
progress.progress.is-info(value=totals(user.doc.wishlist).pledged, max=user.doc.wishlist.length)