Skip to content

Commit 439dd95

Browse files
authored
Merge pull request #183 from hugovk/fix-last-updated-on-none
2 parents d674528 + 5c6c0b4 commit 439dd95

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

python_docs_theme/layout.html

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,21 +136,35 @@ <h3>{{ _('Navigation') }}</h3>
136136

137137
{% block footer %}
138138
<div class="footer">
139-
&copy; {% if theme_copyright_url or hasdoc('copyright') %}<a href="{% if theme_copyright_url %}{{ theme_copyright_url }}{% else %}{{ pathto('copyright') }}{% endif %}">{% endif %}{% trans %}Copyright{% endtrans %}{% if theme_copyright_url or hasdoc('copyright') %}</a>{% endif %} {{ copyright|e }}.
139+
&copy; {% if theme_copyright_url or hasdoc('copyright') %}
140+
<a href="{% if theme_copyright_url %}{{ theme_copyright_url }}{% else %}{{ pathto('copyright') }}{% endif %}">
141+
{% endif %}
142+
{% trans %}Copyright{% endtrans %}
143+
{% if theme_copyright_url or hasdoc('copyright') %}
144+
</a>
145+
{% endif %} {{ copyright|e }}.
140146
<br />
141147
{% trans %}This page is licensed under the Python Software Foundation License Version 2.{% endtrans %}
142148
<br />
143149
{% trans %}Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.{% endtrans %}
144150
<br />
145-
{% if theme_license_url %}{% trans license_file=theme_license_url %}See <a href="{{ license_file }}">History and License</a> for more information.{% endtrans %}<br />{% endif %}
146-
{% if theme_hosted_on %}{% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}<br />{% endif %}
151+
{% if theme_license_url %}
152+
{% trans license_file=theme_license_url %}See <a href="{{ license_file }}">History and License</a> for more information.{% endtrans %}<br />
153+
{% endif %}
154+
{% if theme_hosted_on %}
155+
{% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}<br />
156+
{% endif %}
147157
<br />
148158

149159
{% include "footerdonate.html" %}
150160
<br />
151161

152-
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
153-
{% if theme_issues_url %}{% trans %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}{% endif %}
162+
{%- if last_updated %}
163+
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
164+
{%- endif %}
165+
{% if theme_issues_url %}
166+
{% trans %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}
167+
{% endif %}
154168
<br />
155169

156170
{% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy