oh im tired
This commit is contained in:
parent
8c1c27b561
commit
7e7f20f80a
1 changed files with 23 additions and 9 deletions
|
@ -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,17 +61,29 @@ block content
|
||||||
)
|
)
|
||||||
span.icon
|
span.icon
|
||||||
i.fas.fa-arrow-down
|
i.fas.fa-arrow-down
|
||||||
td(data-label='Delete Item')
|
else
|
||||||
if item.addedBy === req.user._id
|
td(data-label='Pledge')
|
||||||
form.inline(method='POST', action=`/wishlist/${req.params.user}/remove/${item.id}`)
|
if req.params.user !== req.user._id && !item.pledgedBy
|
||||||
|
form.inline(method='POST', action=`/wishlist/${req.params.user}/pledge/${item.id}`)
|
||||||
.field.inline
|
.field.inline
|
||||||
.control.inline
|
.control.inline
|
||||||
button.button.is-text(
|
input.inline.button.is-primary(type='submit' value='Pledge')
|
||||||
type='submit',
|
if item.pledgedBy === req.user._id
|
||||||
style='text-decoration: none;'
|
form.inline(method='POST', action=`/wishlist/${req.params.user}/unpledge/${item.id}`)
|
||||||
)
|
.field.inline
|
||||||
span.icon
|
.control.inline
|
||||||
i.fas.fa-trash
|
input.inline.button(type='submit' value='Unpledge')
|
||||||
|
td(data-label='Delete Item')
|
||||||
|
if item.addedBy === req.user._id
|
||||||
|
form.inline(method='POST', action=`/wishlist/${req.params.user}/remove/${item.id}`)
|
||||||
|
.field.inline
|
||||||
|
.control.inline
|
||||||
|
button.button.is-text(
|
||||||
|
type='submit',
|
||||||
|
style='text-decoration: none;'
|
||||||
|
)
|
||||||
|
span.icon
|
||||||
|
i.fas.fa-trash
|
||||||
|
|
||||||
else
|
else
|
||||||
each item, index in wishlist
|
each item, index in wishlist
|
||||||
|
|
Loading…
Reference in a new issue