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:
parent
81e6a8ced0
commit
961f544a4e
@ -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,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,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,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,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,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,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,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,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,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
13
www/latest/badge.html
Normal 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>
|
@ -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,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,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,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,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,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
1
www/rocky/badge.html
Normal file
@ -0,0 +1 @@
|
||||
{% include 'templates/deprecated_badge.tmpl' %}
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user