Added deprecation badge

included deprecation badge from manuas project
in order to work, both sites should be hosted on same domain
( as it is right now ) or have CORS enabled

depends on https://review.openstack.org/#/c/585516/

Change-Id: Idb992bd6d313270869c28bdacc450eb9c7482d16
This commit is contained in:
Sebastian Marcet 2018-07-24 16:09:06 -03:00
parent 611e8395a1
commit e697470467
1 changed files with 16 additions and 0 deletions

View File

@ -94,5 +94,21 @@ ga('send', 'pageview');
{% include 'footer.html' %}
{% include 'script_footer.html' %}
{% block script_footer %}{% endblock %}
{% if series %}
<script type="text/javascript">
$(document).ready(function(){
$.ajax({
context: this,
dataType : "html",
url : "https://docs.openstack.org/{{ series }}/badge.html",
success : function(results) {
$('#deprecated-badge-container').html(results);
}
});
});
</script>
<div id="deprecated-badge-container"></div>
{% endif %}
</body>
</html>