Skip to content

Commit

Permalink
Add Notice on display of Draft pages #984
Browse files Browse the repository at this point in the history
  • Loading branch information
gvn committed Feb 22, 2018
1 parent 2f2a737 commit 71569f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/pug/templates/base-for-django.pug
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ block masterParams
- let isMezzanine = true
- let pageTitle = `{{ page.meta_title }}`;

block memberNotice
| {% if not page.published %}<div><strong>Draft preview.</strong> You must save as Published to make it public.</div>{% endif %}

block heroGuts
| {% block heroGuts %}{% endblock %}

Expand Down
1 change: 1 addition & 0 deletions source/pug/templates/master.pug
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ html
#primary-nav
.wrapper
#member-notice
block memberNotice
.sticky-top
.wrapper-join-us
.container
Expand Down

0 comments on commit 71569f5

Please sign in to comment.