Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion _components/draft-banner.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title: "Draft Banner"
lang: en
redirect_from:
- /components/publication-warning/
inline_css: |
---

This is the publication warning that appears on the top of unpublished documents:
Expand Down
12 changes: 12 additions & 0 deletions _includes/draft-banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<section class="default-grid info" aria-label="Notice">
<p class="inner">
{%- if include.icon -%}
{%- include_cached icon.html name="info" -%}
{%- endif -%}
{%- if include.message -%}
{{ include.message }}
{%- else -%}
{%- include_cached t.html t='This is an unpublished draft preview that might include content that is not yet approved. The published website is at <a href="https://w3.org/WAI/">w3.org/WAI/</a>.' lang=include.lang -%}
{%- endif -%}
</p>
</section>
5 changes: 1 addition & 4 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,7 @@
</div>
</footer>
{%- unless site.published == true -%}
<section class="default-grid info" tabindex="0">
<p class="inner">{% if site.warning_icon %}{% include_cached icon.html name="info" %} {% endif %}{% if site.warning_message %}{{site.warning_message}}{% else %}This is an unpublished draft preview that might include content that is not yet approved. The published website is at <a href="https://www.w3.org/WAI/">w3.org/WAI/</a>.{% endif %}
</p>
</section>
{%- include_cached draft-banner.html lang=pagelang message=page.warning_message icon=page.warning_icon -%}
{%- endunless -%}
<!-- Details4Everybody -->
<script src="{{ '/assets/scripts/details4everybody.js' | append: timestamp | relative_url }}"></script>
Expand Down
5 changes: 1 addition & 4 deletions _includes/header-minimal.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
{%- endcomment -%}
{%- assign col = site.collections | where: "label", page.collection | first -%}
{%- unless site.published == true -%}
<section class="default-grid info" tabindex="0" lang="en">
<p class="inner" style="margin: 0;padding: 1em 0;">{% if site.warning_icon %}{% include_cached icon.html name="info" %} {% endif %}{% if site.warning_message %}{{site.warning_message}}{% else %}This is an unpublished draft preview that might include content that is not yet approved. The published website is at <a href="https://www.w3.org/WAI/">w3.org/WAI/</a>.{% endif %}
</p>
</section>
{%- include_cached draft-banner.html lang=pagelang message=page.warning_message icon=page.warning_icon -%}
{%- endunless -%}
<header id="site-header" class="default-grid with-gap header-minimal">
<div class="logos" style="grid-column-end: 8">
Expand Down
5 changes: 1 addition & 4 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
{%- endcomment -%}
{%- assign col = site.collections | where: "label", page.collection | first -%}
{%- unless site.published == true -%}
<section class="default-grid info" tabindex="0" lang="en">
<p class="inner" style="margin: 0;padding: 1em 0;">{% if site.warning_icon %}{% include_cached icon.html name="info" %} {% endif %}{% if site.warning_message %}{{site.warning_message}}{% else %}This is an unpublished draft preview that might include content that is not yet approved. The published website is at <a href="https://www.w3.org/WAI/">w3.org/WAI/</a>.{% endif %}
</p>
</section>
{%- include_cached draft-banner.html lang=pagelang message=page.warning_message icon=page.warning_icon -%}
{%- endunless -%}
<nav aria-label="{% include t.html t="Skip Link and Language Selector" %}" id="controls" class="default-grid">
{% if include.translations[0].ref %}
Expand Down
Loading