christmas/views/wishlists.pug
2020-10-29 11:25:05 -04:00

18 lines
No EOL
573 B
Text

extends layout.pug
block content
ul.noStyle.noLeftMargin
li
a(href=`/wishlist/${req.user._id}`)
.box
span=req.user._id
span : ???/???
progress.progress(value=1, max=1)
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)