From 71569f558eab6746fc0881828b59f51c127eae42 Mon Sep 17 00:00:00 2001 From: Gavin Lazar Suntop Date: Thu, 22 Feb 2018 10:43:44 -0800 Subject: [PATCH] Add Notice on display of Draft pages #984 --- source/pug/templates/base-for-django.pug | 3 +++ source/pug/templates/master.pug | 1 + 2 files changed, 4 insertions(+) diff --git a/source/pug/templates/base-for-django.pug b/source/pug/templates/base-for-django.pug index d24cc1823ba..a19bc4975d2 100644 --- a/source/pug/templates/base-for-django.pug +++ b/source/pug/templates/base-for-django.pug @@ -8,6 +8,9 @@ block masterParams - let isMezzanine = true - let pageTitle = `{{ page.meta_title }}`; +block memberNotice + | {% if not page.published %}
Draft preview. You must save as Published to make it public.
{% endif %} + block heroGuts | {% block heroGuts %}{% endblock %} diff --git a/source/pug/templates/master.pug b/source/pug/templates/master.pug index ab92f4b2681..740e8b6559e 100644 --- a/source/pug/templates/master.pug +++ b/source/pug/templates/master.pug @@ -40,6 +40,7 @@ html #primary-nav .wrapper #member-notice + block memberNotice .sticky-top .wrapper-join-us .container