summaryrefslogtreecommitdiffstats
path: root/common/sphinx_rtd_theme_rtems/footer.html
diff options
context:
space:
mode:
Diffstat (limited to 'common/sphinx_rtd_theme_rtems/footer.html')
-rw-r--r--common/sphinx_rtd_theme_rtems/footer.html40
1 files changed, 22 insertions, 18 deletions
diff --git a/common/sphinx_rtd_theme_rtems/footer.html b/common/sphinx_rtd_theme_rtems/footer.html
index f4396ee..3b9bcb0 100644
--- a/common/sphinx_rtd_theme_rtems/footer.html
+++ b/common/sphinx_rtd_theme_rtems/footer.html
@@ -1,11 +1,11 @@
<footer>
- {% if next or prev %}
+ {% if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
{% if next %}
- <a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
+ <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"></span></a>
{% endif %}
{% if prev %}
- <a href="{{ prev.link|e }}" class="btn btn-neutral" title="{{ prev.title|striptags|e }}" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+ <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"></span> {{ _('Previous') }}</a>
{% endif %}
</div>
{% endif %}
@@ -16,34 +16,38 @@
<p>
{%- if show_copyright %}
{%- if hasdoc('copyright') %}
- {% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
+ {% set path = pathto('copyright') %}
+ {% set copyright = copyright|e %}
+ &copy; <a href="{{ path }}">{% trans %}Copyright{% endtrans %}</a> {{ copyright }}
{%- else %}
- {% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
+ {% set copyright = copyright|e %}
+ &copy; {% trans %}Copyright{% endtrans %} {{ copyright }}
{%- endif %}
{%- endif %}
{%- if build_id and build_url %}
- {% trans build_url=build_url, build_id=build_id %}
- <span class="build">
- Build
- <a href="{{ build_url }}">{{ build_id }}</a>.
- </span>
- {% endtrans %}
+ <span class="build">
+ {# Translators: Build is a noun, not a verb #}
+ {% trans %}Build{% endtrans %}
+ <a href="{{ build_url }}">{{ build_id }}</a>.
+ </span>
{%- elif commit %}
- {% trans commit=commit %}
- <span class="commit">
- Revision <code>{{ commit }}</code>.
- </span>
- {% endtrans %}
+ <span class="commit">
+ {% trans %}Revision{% endtrans %} <code>{{ commit }}</code>.
+ </span>
{%- elif last_updated %}
- {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
+ <span class="lastupdated">
+ {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
+ </span>
{%- endif %}
</p>
</div>
{%- if show_sphinx %}
- {% trans %}Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>{% endtrans %}.
+ {% set sphinx_web = '<a href="http://sphinx-doc.org/">Sphinx</a>' %}
+ {% set readthedocs_web = '<a href="https://readthedocs.org">Read the Docs</a>' %}
+ {% trans sphinx_web=sphinx_web, readthedocs_web=readthedocs_web %}Built with {{ sphinx_web }} using a{% endtrans %} <a href="https://github.com/rtfd/sphinx_rtd_theme">{% trans %}theme{% endtrans %}</a> {% trans %}provided by {{ readthedocs_web }}{% endtrans %}.
{%- endif %}
{%- block extrafooter %} {% endblock %}