1{% if READTHEDOCS %} 2{# Add rst-badge after rst-versions for small badge style. #} 3 <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions"> 4 <span class="rst-current-version" data-toggle="rst-current-version"> 5 <span class="fa fa-book"> Read the Docs</span> 6 v: {{ current_version }} 7 <span class="fa fa-caret-down"></span> 8 </span> 9 <div class="rst-other-versions"> 10 <dl> 11 <dt>{{ _('Versions') }}</dt> 12 {% for slug, url in versions %} 13 <dd><a href="{{ url }}">{{ slug }}</a></dd> 14 {% endfor %} 15 </dl> 16 <dl> 17 <dt>{{ _('Downloads') }}</dt> 18 {% for type, url in downloads %} 19 <dd><a href="{{ url }}">{{ type }}</a></dd> 20 {% endfor %} 21 </dl> 22 <dl> 23 {# Translators: The phrase "Read the Docs" is not translated #} 24 <dt>{{ _('On Read the Docs') }}</dt> 25 <dd> 26 <a href="//{{ PRODUCTION_DOMAIN }}/projects/{{ slug }}/?fromdocs={{ slug }}">{{ _('Project Home') }}</a> 27 </dd> 28 <dd> 29 <a href="//{{ PRODUCTION_DOMAIN }}/builds/{{ slug }}/?fromdocs={{ slug }}">{{ _('Builds') }}</a> 30 </dd> 31 </dl> 32 </div> 33 </div> 34{% endif %} 35