versions.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <dt>On Read the Docs</dt>
  24. <dd>
  25. <a href="//{{ PRODUCTION_DOMAIN }}/projects/{{ slug }}/?fromdocs={{ slug }}">Project Home</a>
  26. </dd>
  27. <dd>
  28. <a href="//{{ PRODUCTION_DOMAIN }}/builds/{{ slug }}/?fromdocs={{ slug }}">Builds</a>
  29. </dd>
  30. </dl>
  31. <hr/>
  32. Free document hosting provided by <a href="http://www.readthedocs.org">Read the Docs</a>.
  33. </div>
  34. </div>
  35. {% endif %}