From b13e255380bdc658ebe2c529b2e7b592c132832c Mon Sep 17 00:00:00 2001 From: Sam Wing Date: Mon, 18 Nov 2019 15:53:21 -0500 Subject: [PATCH] Wishlist refresh button --- views/layout.pug | 9 +++++---- views/wishlist.pug | 11 +++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/views/layout.pug b/views/layout.pug index 6d36b48..586e75f 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -29,9 +29,10 @@ html(lang='en') div(style='margin-top: 1.5em;') section.section div.container.is-marginless.fullwidth - if title - h1= config.siteTitle + ' - ' + title - else if title !== false - h1 #{config.siteTitle} + block title + if title + h1= config.siteTitle + ' - ' + title + else if title !== false + h1 #{config.siteTitle} include includes/messages.pug block content diff --git a/views/wishlist.pug b/views/wishlist.pug index cecef74..df7bb56 100644 --- a/views/wishlist.pug +++ b/views/wishlist.pug @@ -1,5 +1,16 @@ extends layout.pug +block title + h1 + .level + .level-left + .level-item + button.button.is-rounded(onclick='location.reload()') + span.icon + i.fas.fa-sync-alt + .level-item + span #{config.siteTitle} - #{title} + block content script(type='data/user_id')= req.user._id if process.env.TABLE !== 'false'