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 -*- #} + + + + + ++ 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 +