From 9194839f9f47a882dfef3d0cb8c554d018313648 Mon Sep 17 00:00:00 2001 From: Sam Wing Date: Sun, 17 Nov 2019 07:54:43 -0500 Subject: [PATCH] added by/pledged by --- views/wishlist.pug | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/views/wishlist.pug b/views/wishlist.pug index 80807a2..d1f5331 100644 --- a/views/wishlist.pug +++ b/views/wishlist.pug @@ -8,6 +8,7 @@ block content th Name th(style='width: 50%;') Note th Edit Note + th Added By if req.params.user === req.user._id th Move Up th Move Down @@ -40,6 +41,7 @@ block content ) span.icon i.far.fa-edit + td.ugc(data-label='Added By')= item.addedBy if req.params.user === req.user._id td(data-label='Move Item Up') form.inline(method='POST', action=`/wishlist/${req.params.user}/move/up/${item.id}`) @@ -75,6 +77,8 @@ block content .field.inline .control.inline input.inline.button(type='submit' value='Unpledge') + if item.pledgedBy && item.pledgedBy !== req.user._id + span.ugc Pledged for by #{item.pledgedBy} td(data-label='Delete Item') form.inline(method='POST', action=`/wishlist/${req.params.user}/remove/${item.id}`) .field.inline