fix seeing gifts from other people on your list (#36)
This commit is contained in:
parent
ef77a280ea
commit
001b81d6b5
1 changed files with 4 additions and 3 deletions
|
@ -1,10 +1,11 @@
|
|||
extends layout.pug
|
||||
|
||||
mixin wishlistDetails(wishlist)
|
||||
mixin wishlistDetails(wishlist, onlyShowAddedByUser)
|
||||
details.wishlist-details
|
||||
summary
|
||||
ul
|
||||
for item in wishlist
|
||||
if onlyShowAddedByUser === undefined || item.addedBy === onlyShowAddedByUser
|
||||
li= item.name
|
||||
|
||||
block content
|
||||
|
@ -40,7 +41,7 @@ block content
|
|||
span
|
||||
span=lang('WISHLISTS_COUNTS_SELF', req.user._id)
|
||||
progress.progress(value=1, max=1)
|
||||
+wishlistDetails(req.user.wishlist)
|
||||
+wishlistDetails(req.user.wishlist, req.user._id)
|
||||
each user in users
|
||||
if req.user._id !== user.id
|
||||
li
|
||||
|
|
Loading…
Reference in a new issue