Skip to content

Commit 3b770f5

Browse files
committed
Merge pull request #1603 from rtfd/dont-show-versions-if-they-dont-exist
Disable showing the Versions tab in the footer if there aren’t any.
2 parents d553827 + 3a8f992 commit 3b770f5

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

readthedocs/restapi/templates/restapi/footer.html

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
</dl>
3636
{% endif %}
37-
{% if not project.single_version %} {# and versions|length > 1 #}
37+
{% if not project.single_version and versions|length >= 1 %}
3838
<dl>
3939
<dt>Versions</dt>
4040
{% for version in versions %}
@@ -48,6 +48,7 @@
4848
{% endfor %}
4949
</dl>
5050
{% endif %}
51+
5152
{% if downloads %}
5253
<dl>
5354
<dt>Downloads</dt>
@@ -71,15 +72,6 @@
7172
</dd>
7273
</dl>
7374

74-
{% if print_url %}
75-
<dl>
76-
<dt>Paperback</dt>
77-
<dd>
78-
<a href="{{ print_url }}">Buy this as a paperback</a>
79-
</dd>
80-
</dl>
81-
{% endif %}
82-
8375
{% if github_edit_url %}
8476
<dl>
8577
<dt>On GitHub</dt>

0 commit comments

Comments
 (0)