Skip to content

Commit

Permalink
Merge branch 'master' into header-h5
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottDowne committed May 30, 2018
2 parents b0da463 + 6e3cda7 commit 29c4fc0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions network-api/networkapi/templates/pages/base-compiled.html
Expand Up @@ -14,6 +14,7 @@
<title>{% block pageTitle %}Mozilla Foundation - {{ page.meta_title }}{% endblock %}</title>
</head>
<body id="view-{% block bodyID %}{% endblock %}">
{% block page_top_content %}{% endblock %}
<div class="takeover"></div>
<div class="wrapper">
<div id="member-notice">{% if page.status == 1 %}<div><strong>Draft preview.</strong> You must save as Published to make it public.</div>{% endif %}
Expand Down
Expand Up @@ -8,9 +8,15 @@
{% meta_tags %}
{% endblock %}

{% block content %}
{% block minisite_title_mb %}{% endblock %}
{% block page_top_content %}
{% if page.live == False %}
<div class="wagtail-draft-warning">
This is a draft page, and is only visible to users who are logged in to the CMS admin.
</div>
{% endif %}
{% endblock %}

{% block content %}
<div class="hidden-md-up" id="multipage-nav-mobile">
<div class="container">
<div class="row px-3">
Expand Down
7 changes: 7 additions & 0 deletions source/sass/wagtail.scss
Expand Up @@ -75,3 +75,10 @@
font-size: inherit;
line-height: inherit;
}

body div.wagtail-draft-warning {
background: #faf2cc;
text-align: center;
font-weight: bold;
text-transform: uppercase;
}

0 comments on commit 29c4fc0

Please sign in to comment.