<div dir="ltr">and the latest release its different bc its a corner case, there is not way to figure it out from the template logic if current navigated release its the latest so that is why its has its own template and logic regards</div><br><div class="gmail_quote"><div dir="ltr">El sáb., 5 ene. 2019 a las 1:19, Sebastian Marcet (<<a href="mailto:smarcet@gmail.com">smarcet@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Adam, that approach is followed in order to be consumed from other projects like theme docs, using an ajax call doing a get and including its content dynamically on the page, also the css dir its not used bc otherwise it will not point to the rite css path on the fore-mentioned approach, instead its using the absolute path in order to load the css correctly through the ajax call ( check <a href="https://review.openstack.org/#/c/585516/" target="_blank">https://review.openstack.org/#/c/585516/</a>)</div><div dir="ltr"><br></div><div>on docs theme the deprecation badge is loaded using this snippet</div><div><br></div><div><div><script type="text/javascript"></div><div>    $(document).ready(function(){</div><div><br></div><div>          $.ajax({</div><div>            context: this,</div><div>            dataType : "html",</div><div>            url : "<a href="https://docs.openstack.org/%7B%7B" target="_blank">https://docs.openstack.org/{{</a> series }}/badge.html",</div><div>            success : function(results) {</div><div>                $('#deprecated-badge-container').html(results);</div><div>            }</div><div>        });</div><div>    });</div><div></script></div></div><div><br></div><div>on file openstackdocstheme/theme/openstackdocs/layout.html</div><div><br></div><div>hope that shed some lite , have in mind that its a first iteration and any better approach its welcome</div><div><br></div><div>regards</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">El vie., 4 ene. 2019 a las 20:45, Adam Spiers (<<a href="mailto:aspiers@suse.com" target="_blank">aspiers@suse.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I'm currently hacking on the deprecation badges in openstack-manuals,<br>
and there's a couple of things I don't understand.  Any chance someone<br>
could explain why www/latest/badge.html doesn't just do:<br>
<br>
    {% include 'templates/deprecated_badge.tmpl' %}<br>
<br>
like all the others?<br>
<br>
    <a href="https://github.com/openstack/openstack-manuals/commit/961f544a4ec383d8b500afd82dda5dc333f689d1#diff-61d0adc734c25e15fa375c6acd344703" rel="noreferrer" target="_blank">https://github.com/openstack/openstack-manuals/commit/961f544a4ec383d8b500afd82dda5dc333f689d1#diff-61d0adc734c25e15fa375c6acd344703</a><br>
<br>
I'm also what exactly would be wrong with the included CSS path if<br>
CSSDIR was used in www/templates/deprecated_badge.tmpl instead of<br>
heeding this caveat:<br>
<br>
    <a href="https://github.com/openstack/openstack-manuals/commit/961f544a4ec383d8b500afd82dda5dc333f689d1#diff-67d1669c09d2cddc437c6d803a5d6c02R4" rel="noreferrer" target="_blank">https://github.com/openstack/openstack-manuals/commit/961f544a4ec383d8b500afd82dda5dc333f689d1#diff-67d1669c09d2cddc437c6d803a5d6c02R4</a><br>
<br>
It would be good to fix it to use CSSDIR because currently it's<br>
awkward to test CSS changes.<br>
<br>
Thanks!<br>
Adam<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-3104965163545343695gmail_signature"><div dir="ltr">Sebastian Marcet<br><a href="https://ar.linkedin.com/in/smarcet" target="_blank">https://ar.linkedin.com/in/smarcet</a><br>SKYPE: sebastian.marcet</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Sebastian Marcet<br><a href="https://ar.linkedin.com/in/smarcet" target="_blank">https://ar.linkedin.com/in/smarcet</a><br>SKYPE: sebastian.marcet</div></div>