Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit439dd95

Browse files
authored
Merge pull request#183 from hugovk/fix-last-updated-on-none
2 parentsd674528 +5c6c0b4 commit439dd95

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
<divclass="footer">
139-
&copy; {% if theme_copyright_url or hasdoc('copyright') %}<ahref="{% 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+
<ahref="{% 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<ahref="{{ 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<ahref="{{ 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 %}<ahref="{{ 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 %}<ahref="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}
167+
{% endif %}
154168
<br/>
155169

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp