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
|
extends layout.pug
|
||||||
|
|
||||||
mixin wishlistDetails(wishlist)
|
mixin wishlistDetails(wishlist, onlyShowAddedByUser)
|
||||||
details.wishlist-details
|
details.wishlist-details
|
||||||
summary
|
summary
|
||||||
ul
|
ul
|
||||||
for item in wishlist
|
for item in wishlist
|
||||||
|
if onlyShowAddedByUser === undefined || item.addedBy === onlyShowAddedByUser
|
||||||
li= item.name
|
li= item.name
|
||||||
|
|
||||||
block content
|
block content
|
||||||
|
@ -40,7 +41,7 @@ block content
|
||||||
span
|
span
|
||||||
span=lang('WISHLISTS_COUNTS_SELF', req.user._id)
|
span=lang('WISHLISTS_COUNTS_SELF', req.user._id)
|
||||||
progress.progress(value=1, max=1)
|
progress.progress(value=1, max=1)
|
||||||
+wishlistDetails(req.user.wishlist)
|
+wishlistDetails(req.user.wishlist, req.user._id)
|
||||||
each user in users
|
each user in users
|
||||||
if req.user._id !== user.id
|
if req.user._id !== user.id
|
||||||
li
|
li
|
||||||
|
|
Loading…
Reference in a new issue