add pledge logic
This commit is contained in:
parent
a998928202
commit
48dce2c5c4
2 changed files with 5 additions and 1 deletions
|
@ -160,6 +160,7 @@ module.exports.strings = {
|
|||
WISHLIST_PLEDGE_SUCCESS: 'Successfully pledged for item!',
|
||||
WISHLIST_PLEDGE: 'Pledge',
|
||||
WISHLIST_PLEDGED: pledgedBy => `Pledged for by ${pledgedBy}`,
|
||||
WISHLIST_PLEDGED_GUEST: 'Pledged for by a guest user',
|
||||
WISHLIST_PRICE: 'Price',
|
||||
WISHLIST_REFRESH_GUARD: 'Invalid user',
|
||||
WISHLIST_REFRESH_NO_URL: 'Item has no URL.',
|
||||
|
|
|
@ -113,6 +113,9 @@ block content
|
|||
.control.inline
|
||||
input.inline.button(type='submit' value=lang('WISHLIST_UNPLEDGE'))
|
||||
if item.pledgedBy && item.pledgedBy !== req.user._id
|
||||
if item.pledgedBy === '_CCUNKNOWN'
|
||||
span.ugc=lang('WISHLIST_PLEDGED_GUEST')
|
||||
else
|
||||
span.ugc=lang('WISHLIST_PLEDGED', item.pledgedBy)
|
||||
td(data-label='Delete Item')
|
||||
form.inline(
|
||||
|
|
Loading…
Reference in a new issue