footer.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <footer>
  2. {%- if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
  3. {#- Translators: This is an ARIA section label for the footer section of the page. -#}
  4. <div class="rst-footer-buttons" role="navigation" aria-label="{{ _('Footer') }}">
  5. {%- if prev %}
  6. <a href="{{ prev.link|e }}" class="btn btn-neutral float-left" title="{{ prev.title|striptags|e }}" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> {{ _('Previous') }}</a>
  7. {%- endif %}
  8. {%- if next %}
  9. <a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n" rel="next">{{ _('Next') }} <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
  10. {%- endif %}
  11. </div>
  12. {%- endif %}
  13. <hr/>
  14. <div role="contentinfo">
  15. {%- block contentinfo %}
  16. <p>
  17. {%- if show_copyright %}
  18. {%- if hasdoc('copyright') %}
  19. {%- trans path=pathto('copyright'), copyright=copyright|e %}&#169; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
  20. {%- else %}
  21. {%- trans copyright=copyright|e %}&#169; Copyright {{ copyright }}.{% endtrans %}
  22. {%- endif %}
  23. {%- endif %}
  24. {%- if build_id and build_url %}
  25. <span class="build">
  26. {#- Translators: Build is a noun, not a verb -#}
  27. {%- trans %}Build{% endtrans -%}
  28. <a href="{{ build_url }}">{{ build_id }}</a>.
  29. </span>
  30. {%- elif commit %}
  31. <span class="commit">
  32. {#- Translators: the phrase "revision" comes from Git, referring to a commit #}
  33. {%- trans %}Revision{% endtrans %} <code>{{ commit }}</code>.
  34. </span>
  35. {%- endif %}
  36. {%- if last_updated %}
  37. <span class="lastupdated">
  38. {%- trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
  39. </span>
  40. {%- endif -%}
  41. </p>
  42. {%- endblock %}
  43. </div>
  44. {% if show_sphinx %}
  45. {%- set sphinx_web = '<a href="https://www.sphinx-doc.org/">Sphinx</a>' %}
  46. {%- set readthedocs_web = '<a href="https://readthedocs.org">Read the Docs</a>' %}
  47. {#- Translators: the variable "sphinx_web" is a link to the Sphinx project documentation with the text "Sphinx" #}
  48. {%- trans sphinx_web=sphinx_web, readthedocs_web=readthedocs_web %}Built with {{ sphinx_web }} using a{% endtrans %}
  49. {#- Translators: "theme" refers to a theme for Sphinx, which alters the appearance of the generated documenation #}
  50. <a href="https://github.com/readthedocs/sphinx_rtd_theme">{% trans %}theme{% endtrans %}</a>
  51. {#- Translators: this is always used as "provided by Read the Docs", and should not imply Read the Docs is an author of the generated documentation. #}
  52. {% trans %}provided by {{ readthedocs_web }}{% endtrans %}.
  53. {% endif %}
  54. {%- block extrafooter %} {% endblock %}
  55. </footer>