oh im tired

This commit is contained in:
Sam Wing 2019-11-16 23:53:17 -05:00
parent 8c1c27b561
commit 7e7f20f80a

View file

@ -10,6 +10,8 @@ block content
if req.params.user === req.user._id if req.params.user === req.user._id
th Move Up th Move Up
th Move Down th Move Down
else
th Pledge
th Delete th Delete
tbody tbody
each item, index in wishlist each item, index in wishlist
@ -59,6 +61,18 @@ block content
) )
span.icon span.icon
i.fas.fa-arrow-down i.fas.fa-arrow-down
else
td(data-label='Pledge')
if req.params.user !== req.user._id && !item.pledgedBy
form.inline(method='POST', action=`/wishlist/${req.params.user}/pledge/${item.id}`)
.field.inline
.control.inline
input.inline.button.is-primary(type='submit' value='Pledge')
if item.pledgedBy === req.user._id
form.inline(method='POST', action=`/wishlist/${req.params.user}/unpledge/${item.id}`)
.field.inline
.control.inline
input.inline.button(type='submit' value='Unpledge')
td(data-label='Delete Item') td(data-label='Delete Item')
if item.addedBy === req.user._id if item.addedBy === req.user._id
form.inline(method='POST', action=`/wishlist/${req.params.user}/remove/${item.id}`) form.inline(method='POST', action=`/wishlist/${req.params.user}/remove/${item.id}`)