Merge pull request #12342 from nishant-sachdeva/relocating_download_section_in_docs

Restoring the RTD icon. Downloads section to still be above Versions section
This commit is contained in:
Kamil Śliwak 2021-11-29 20:38:26 +01:00 committed by GitHub
commit 622e89649f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,7 @@
{# Add rst-badge after rst-versions for small badge style. #} {# Add rst-badge after rst-versions for small badge style. #}
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions"> <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
<span class="rst-current-version" data-toggle="rst-current-version"> <span class="rst-current-version" data-toggle="rst-current-version">
{% for type, url in downloads %} <span class="fa fa-book fa-element"> RTD </span>
{% if type == 'PDF' %}
<a href="{{ url }}">{{ type }}</a>
{% endif %}
{% endfor %}
<span class="fa fa-element"> <span class="fa fa-element">
<input class="container_toggle" type="checkbox" id="switch" name="mode"> <input class="container_toggle" type="checkbox" id="switch" name="mode">