From 5387130c31a8fe20f31d135fbfeadf1cbe75906c Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Mon, 2 Jul 2018 19:55:38 -0400 Subject: [PATCH] support for closing the homepage banner --- views/index.pug | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/views/index.pug b/views/index.pug index 4499285..39352e6 100644 --- a/views/index.pug +++ b/views/index.pug @@ -7,8 +7,8 @@ block content h1(class="h2") #{coinConfig.siteTitle} hr - if (config.demoSite) - div(class="alert alert-primary", role="alert") + if (config.demoSite && session.hideHomepageBanner != "true") + div(class="alert alert-primary alert-dismissible", role="alert") p strong #{coinConfig.siteTitle} span is @@ -25,6 +25,9 @@ block content span a(class="github-button", href="https://github.com/janoside/btc-rpc-explorer/fork", data-icon="octicon-repo-forked", data-size="large", data-show-count="true", aria-label="Fork janoside/btc-rpc-explorer on GitHub") Fork + a(href="/changeSetting?name=hideHomepageBanner&value=true", class="close", aria-label="Close", style="text-decoration: none;") + span(aria-hidden="true") × + if (latestBlocks) div(class="row mt-4")