From cfdd1bf79f34cfcfe3dce1d0c6f6d2db061a3a29 Mon Sep 17 00:00:00 2001 From: Wingysam Date: Tue, 20 Nov 2018 16:21:13 -0500 Subject: [PATCH] Fix no-url items on wishlists not having buttons --- views/wishlist.pug | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/views/wishlist.pug b/views/wishlist.pug index ae86053..faef950 100644 --- a/views/wishlist.pug +++ b/views/wishlist.pug @@ -4,9 +4,11 @@ block content for item in wishlist if req.user._id === item.addedBy || req.params.user !== req.user._id .box - if item.url span - a(href=item.url, rel='noopener noreferrer', target='_blank')= (item.name ? item.name : item.url) + if item.url + a(href=item.url, rel='noopener noreferrer', target='_blank')= (item.name ? item.name : item.url) + else + span= item.name if req.params.user !== req.user._id && !item.pledgedBy form(method='POST', action=`/wishlist/${req.params.user}/pledge/${item.id}`) .field @@ -22,8 +24,6 @@ block content .field .control input.button.is-warning(type='submit' value='Remove') - else - span= item.name form(method='POST') .field label.label Item URL or Name