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