Merge "Added deprecation badge"

This commit is contained in:
Zuul 2018-03-20 16:36:43 +00:00 committed by Gerrit Code Review
commit dcf933687c
21 changed files with 227 additions and 0 deletions

5
www/austin/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/bexar/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/cactus/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/diablo/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/essex/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/folsom/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/grizzly/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/havana/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/juno/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/kilo/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/liberty/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/mitaka/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/newton/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/ocata/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/pike/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

5
www/queens/badge.html Normal file
View File

@ -0,0 +1,5 @@
<!-- Bootstrap Core CSS -->
<link href="{{ CSSDIR }}bootstrap.css" rel="stylesheet">
<!-- Fonts -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
{% include 'templates/deprecated_badge.tmpl' %}

View File

@ -0,0 +1,100 @@
/* deprecated badge css */
.deprecated-badge {
background: #2A4E68;
padding: 15px;
text-transform: uppercase;
font-size: 1em;
box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.46);
-webkit-font-smoothing: subpixel-antialiased;
color: #edf2f7 !important;
}
.deprecated-badge a, .deprecated-badge p {
text-decoration: none;
position: relative;
color: #edf2f7;
}
.deprecated-badge a:hover {
color: white;
text-decoration: none;
}
.deprecated-badge.fixed {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
}
p.deprecated-badge-left {
float: left;
}
a.deprecated-badge-right {
float: right;
display: none;
font-size: 0.9em;
}
.deprecated-badge.fixed a.deprecated-badge-right {
display: inline-block;
}
.navbar-default{
margin-top: 50px !important;
}
.deprecated-badge-obsolete {
background: #ff0000 !important;
}
.deprecated-badge-eol {
background: #ff0000 !important;
}
.deprecated-badge-current {
background: #30739C !important;
}
.deprecated-badge-maintained {
background: #eaeaea !important;
}
.deprecated-badge-development {
background: #eaeaea !important;
}
.deprecated-badge-development a, .deprecated-badge-development p {
color: #000000 !important;
}
.deprecated-badge-maintained a, .deprecated-badge-maintained p {
color: #000000 !important;
}
.deprecated-badge .container
{
}
.deprecated-badge .deprecated-badge-close-button{
position:absolute;
top:1%;
left:99%;
cursor: pointer;
}
.deprecated-badge-maintained .deprecated-badge-close-button{
color: #000000 !important;
}
.deprecated-badge-development .deprecated-badge-close-button{
color: #000000 !important;
}
.deprecated-badge-current .deprecated-badge-close-button{
color: white !important;
}

View File

@ -0,0 +1,6 @@
window.onload = function(){
document.getElementById('deprecated-badge-close-button').onclick = function(){
var deprecated_badge = document.getElementById('deprecated-badge');
deprecated_badge.style.display = 'none';
};
};

View File

@ -16,6 +16,7 @@
<body>
{% include 'templates/header.tmpl' %}
{% block content %}{% endblock %}
{% include 'templates/deprecated_badge.tmpl' %}
{% include 'templates/footer.tmpl' %}
{% include 'templates/script_footer.tmpl' %}
</body>

View File

@ -0,0 +1,39 @@
{# -*- mode: html -*- #}
<!-- Custom CSS -->
<link href="{{ CSSDIR }}deprecated-badge.css" rel="stylesheet">
<script src="{{ SCRIPTDIR }}deprecated-badge.js"></script>
<div id="deprecated-badge" class="deprecated-badge fixed
{% if SERIES == RELEASED_SERIES %}
deprecated-badge-current
{% else %}
deprecated-badge-{{ SERIES_INFO.status| lower }}
{% endif %}
">
<span id="deprecated-badge-close-button" title="close" class="deprecated-badge-close-button">x</span>
<div class="container">
{% if SERIES_INFO.status == 'obsolete' %}
<p class="deprecated-badge-left">
This Release is no longer supported by the community. The current, supported release is <a href="/{{RELEASED_SERIES}}/">{{RELEASED_SERIES.capitalize()}}</a>
</p>
{% elif SERIES_INFO.status == 'EOL' %}
<p class="deprecated-badge-left">
This Release is no longer supported by the community. The current, supported release is <a href="/{{RELEASED_SERIES}}/">{{RELEASED_SERIES.capitalize()}}</a>
</p>
{% elif SERIES == RELEASED_SERIES %}
<p class="deprecated-badge-left">
This is the current, supported release.
</p>
{% elif SERIES_INFO.status == 'maintained' %}
<p class="deprecated-badge-left">
This is maintained, but NOT the current release. The current, supported release is <a href="/{{RELEASED_SERIES}}/">{{RELEASED_SERIES.capitalize()}}</a>
</p>
{% elif SERIES_INFO.status == 'development' %}
<p class="deprecated-badge-left">
This release is currently under development. The current, supported release is <a href="/{{RELEASED_SERIES}}/">{{RELEASED_SERIES.capitalize()}}</a>
</p>
{% endif %}
<a href="#top" class="deprecated-badge-right"><i class="fa fa-chevron-up" aria-hidden="true"></i>&nbsp;Back to Top</a>
</div>
</div>

View File

@ -59,6 +59,7 @@
</div>
</div>
</div>
{% include 'templates/deprecated_badge.tmpl' %}
{% include 'templates/footer.tmpl' %}
{% include 'templates/script_footer.tmpl' %}
</body>