From b603d1be803dc055f72cc5516b2e0afa6f6e41fa Mon Sep 17 00:00:00 2001 From: Sebastian Marcet Date: Tue, 26 Dec 2017 17:31:08 -0300 Subject: [PATCH] Added deprecation badge added a new fixed badge indicating the deprecation status of each release * obsolete - "No longer supported by the community. For the current release, CLICK HERE.", #ff0000 * EOL - "No longer supported by the community. For the current release, CLICK HERE.", #ff0000 * maintained - This has two states. The current release and recent releases. ** Current Release - "This is the current release.", #30739C ** Recent Release - "This is maintained, but NOT the current release. For the current release, CLICK HERE.", #eaeaea * Current Release - "This is the current release.", #30739C * Recent Release - "This is maintained, but NOT the current release. For the current release, CLICK HERE.", #eaeaea * development - "This release is currently under development For the current release, CLICK HERE.", #eaeaea Change-Id: I67a759440c2e99b33aa925c5e17c11a1b885ac82 --- www/austin/badge.html | 5 ++ www/bexar/badge.html | 5 ++ www/cactus/badge.html | 5 ++ www/diablo/badge.html | 5 ++ www/essex/badge.html | 5 ++ www/folsom/badge.html | 5 ++ www/grizzly/badge.html | 5 ++ www/havana/badge.html | 5 ++ www/juno/badge.html | 5 ++ www/kilo/badge.html | 5 ++ www/liberty/badge.html | 5 ++ www/mitaka/badge.html | 5 ++ www/newton/badge.html | 5 ++ www/ocata/badge.html | 5 ++ www/pike/badge.html | 5 ++ www/queens/badge.html | 5 ++ www/static/common/css/deprecated-badge.css | 100 +++++++++++++++++++++ www/static/common/js/deprecated-badge.js | 6 ++ www/templates/base.tmpl | 1 + www/templates/deprecated_badge.tmpl | 39 ++++++++ www/templates/indexbase.tmpl | 1 + 21 files changed, 227 insertions(+) create mode 100644 www/austin/badge.html create mode 100644 www/bexar/badge.html create mode 100644 www/cactus/badge.html create mode 100644 www/diablo/badge.html create mode 100644 www/essex/badge.html create mode 100644 www/folsom/badge.html create mode 100644 www/grizzly/badge.html create mode 100644 www/havana/badge.html create mode 100644 www/juno/badge.html create mode 100644 www/kilo/badge.html create mode 100644 www/liberty/badge.html create mode 100644 www/mitaka/badge.html create mode 100644 www/newton/badge.html create mode 100644 www/ocata/badge.html create mode 100644 www/pike/badge.html create mode 100644 www/queens/badge.html create mode 100644 www/static/common/css/deprecated-badge.css create mode 100644 www/static/common/js/deprecated-badge.js create mode 100644 www/templates/deprecated_badge.tmpl diff --git a/www/austin/badge.html b/www/austin/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/austin/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/bexar/badge.html b/www/bexar/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/bexar/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/cactus/badge.html b/www/cactus/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/cactus/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/diablo/badge.html b/www/diablo/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/diablo/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/essex/badge.html b/www/essex/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/essex/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/folsom/badge.html b/www/folsom/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/folsom/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/grizzly/badge.html b/www/grizzly/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/grizzly/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/havana/badge.html b/www/havana/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/havana/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/juno/badge.html b/www/juno/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/juno/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/kilo/badge.html b/www/kilo/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/kilo/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/liberty/badge.html b/www/liberty/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/liberty/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/mitaka/badge.html b/www/mitaka/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/mitaka/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/newton/badge.html b/www/newton/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/newton/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/ocata/badge.html b/www/ocata/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/ocata/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/pike/badge.html b/www/pike/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/pike/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/queens/badge.html b/www/queens/badge.html new file mode 100644 index 0000000000..cff7e272a1 --- /dev/null +++ b/www/queens/badge.html @@ -0,0 +1,5 @@ + + + + +{% include 'templates/deprecated_badge.tmpl' %} \ No newline at end of file diff --git a/www/static/common/css/deprecated-badge.css b/www/static/common/css/deprecated-badge.css new file mode 100644 index 0000000000..16ee3829e6 --- /dev/null +++ b/www/static/common/css/deprecated-badge.css @@ -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; +} \ No newline at end of file diff --git a/www/static/common/js/deprecated-badge.js b/www/static/common/js/deprecated-badge.js new file mode 100644 index 0000000000..532a974a81 --- /dev/null +++ b/www/static/common/js/deprecated-badge.js @@ -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'; + }; +}; \ No newline at end of file diff --git a/www/templates/base.tmpl b/www/templates/base.tmpl index ceda1f8d54..ff709c7184 100644 --- a/www/templates/base.tmpl +++ b/www/templates/base.tmpl @@ -16,6 +16,7 @@ {% include 'templates/header.tmpl' %} {% block content %}{% endblock %} +{% include 'templates/deprecated_badge.tmpl' %} {% include 'templates/footer.tmpl' %} {% include 'templates/script_footer.tmpl' %} diff --git a/www/templates/deprecated_badge.tmpl b/www/templates/deprecated_badge.tmpl new file mode 100644 index 0000000000..8456479105 --- /dev/null +++ b/www/templates/deprecated_badge.tmpl @@ -0,0 +1,39 @@ +{# -*- mode: html -*- #} + + + + + +
+ x +
+ {% if SERIES_INFO.status == 'obsolete' %} +

+ This Release is no longer supported by the community. The current, supported release is {{RELEASED_SERIES.capitalize()}} +

+ {% elif SERIES_INFO.status == 'EOL' %} +

+ This Release is no longer supported by the community. The current, supported release is {{RELEASED_SERIES.capitalize()}} +

+ {% elif SERIES == RELEASED_SERIES %} +

+ This is the current, supported release. +

+ {% elif SERIES_INFO.status == 'maintained' %} +

+ This is maintained, but NOT the current release. The current, supported release is {{RELEASED_SERIES.capitalize()}} +

+ {% elif SERIES_INFO.status == 'development' %} +

+ This release is currently under development. The current, supported release is {{RELEASED_SERIES.capitalize()}} +

+ {% endif %} +  Back to Top +
+
\ No newline at end of file diff --git a/www/templates/indexbase.tmpl b/www/templates/indexbase.tmpl index ab3eb0f534..ece22e08a4 100644 --- a/www/templates/indexbase.tmpl +++ b/www/templates/indexbase.tmpl @@ -59,6 +59,7 @@ +{% include 'templates/deprecated_badge.tmpl' %} {% include 'templates/footer.tmpl' %} {% include 'templates/script_footer.tmpl' %}