Updated External deprecation badge resource

In order to be fully functional to be consumable from
an external project ( ie docthemes)

- removed from external deprecation badge references to
boostrap css and font awesome css
- removed relative references to js and css and made it
absolutes

Change-Id: I07809ba90a4a7cae996994a856d9d6be9d7a1195
This commit is contained in:
Sebastian Marcet 2018-07-24 16:06:40 -03:00
parent 81e6a8ced0
commit 961f544a4e
19 changed files with 20 additions and 66 deletions

View File

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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' %}

13
www/latest/badge.html Normal file
View File

@ -0,0 +1,13 @@
<!-- Custom CSS -->
<link href="https://docs.openstack.org/common/css/deprecated-badge.css" rel="stylesheet">
<script src="https://docs.openstack.org/common/js/deprecated-badge.js"></script>
<div class="deprecated-badge fixed deprecated-badge-development" id="deprecated-badge">
<span class="deprecated-badge-close-button" id="deprecated-badge-close-button" title="close">x</span>
<div class="container">
<p class="deprecated-badge-left">
This release is under development. The current supported release is <a href="/{{RELEASED_SERIES}}/">{{RELEASED_SERIES.capitalize()}}.</a>
</p>
<a class="deprecated-badge-right" href="#top"><i aria-hidden="true" class="fa fa-chevron-up"></i>Back to Top</a>
</div>
</div>

View File

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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

@ -1,5 +1 @@
<!-- 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' %}

1
www/rocky/badge.html Normal file
View File

@ -0,0 +1 @@
{% include 'templates/deprecated_badge.tmpl' %}

View File

@ -1,8 +1,12 @@
{# -*- mode: html -*- #}
<!-- Custom CSS -->
<link href="{{ CSSDIR }}deprecated-badge.css" rel="stylesheet">
<script src="{{ SCRIPTDIR }}deprecated-badge.js"></script>
{# reason to not use the CSSDIR its because introduces a relative path #}
{# not an absolute, so when its included on docthemes, its tried to include the css #}
{# from a wrong path instead of the right one #}
<link href="https://docs.openstack.org/common/css/deprecated-badge.css" rel="stylesheet">
<script src="https://docs.openstack.org/common/js/deprecated-badge.js"></script>
<div id="deprecated-badge" class="deprecated-badge fixed
{% if SERIES == RELEASED_SERIES %}