[2.5] Add Eol banner to all pages (#59810)

* add eol banner (#59254)

(cherry picked from commit 00699735e9)
This commit is contained in:
Sandra McCann 2019-08-07 16:45:57 -04:00 committed by Alicia Cozine
parent ab16969416
commit 4f5084d9d2
2 changed files with 12 additions and 6 deletions

View file

@ -0,0 +1,4 @@
{# Creates a banner at the top of the page for EOL versions. #}
<div id='banner' class='Admonition caution'>
<p>You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See <a href="https://docs.ansible.com/ansible/latest/index.html">the latest Ansible documentation</a>.</p>
</div>

View file

@ -17,7 +17,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="//www.redhat.com/dtm.js"></script>
<meta class="swiftype" name="published_at" data-type="date" content="2017-12-13" />
<meta class="swiftype" name="published_at" data-type="date" content="2017-12-13" />
<meta class="swiftype" name="version" data-type="string" content="3.2.2">
<!-- Google Tag Manager Data Layer -->
@ -113,7 +113,7 @@
</head>
<body class="wy-body-for-nav">
<body class="wy-body-for-nav">
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-PSB293" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
@ -131,7 +131,7 @@
</div>
<a class="DocSite-nav" href="/" style="padding-bottom: 30px;">
<img class="DocSiteNav-logo"
src="{{ pathto('_static/', 1) }}images/logo_invert.png"
alt="Ansible Logo">
@ -145,7 +145,7 @@
{# SIDE NAV, TOGGLES ON MOBILE #}
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
{% block sidebartitle %}
@ -154,7 +154,7 @@
<a class="DocSiteProduct-header DocSiteProduct-header--core" href="/">
<div class="DocSiteProduct-productName">
<div class="DocSiteProduct-logoText">
Ansible
Ansible
<div class="DocSiteProduct-CurrentVersion" align="right">
2.5
</div>
@ -170,7 +170,7 @@
{% include "searchbox.html" %}
</div>
{% endblock %}
</div>
@ -237,6 +237,8 @@
</div> -->
{% include "breadcrumbs.html" %}
{% include "ansible_eol_banner.html" %}
<div id="page-content">
{% block body %}{% endblock %}
</div>