Template: add version warning banner

This commit is contained in:
rebortg 2021-05-10 21:32:00 +02:00
parent 3834b9ff92
commit 5d91caaac1
2 changed files with 18 additions and 0 deletions

View File

@ -174,4 +174,18 @@ a.cmdlink span:hover{
.rst-content table.docutils td.coverage-fail {
background-color: red;
color: black;
}
p.devwarning {
top: 10px;
position: sticky;
margin: 10px 10px 10px 310px;
padding: 5px 10px;
border-radius: 4px;
letter-spacing: 1px;
color: #000;
text-align: center;
background: #d40 repeating-linear-gradient( 135deg, transparent, transparent 56px, rgba(255, 255, 255, 0.2) 56px, rgba(255, 255, 255, 0.2) 112px );
background-color: #fdab10;
}

View File

@ -3,3 +3,7 @@
{% block extrahead %}
<link href="{{ pathto("_static/css/custom.css", True) }}" rel="stylesheet" type="text/css">
{% endblock %}
{% block extrabody %}
<p class="devwarning">Warning: This is the dev version. The latest stable version is
<a href="https://docs.vyos.io/en/crux/">Crux 1.2.x</a>. Or the current release candidate version is <a href="https://docs.vyos.io/en/equuleus/">Equuleus 1.3.x</a></p>
{% endblock %}