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:
parent
611e8395a1
commit
e697470467
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue