Skip to content

Commit 3f7a96d

Browse files
committed
Don't display PDF's if they aren't enabled
1 parent d76c163 commit 3f7a96d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readthedocs/templates/core/project_downloads.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load i18n %}
22

33
{% for version, dict in version_data.items %}
4-
{% if dict.pdf %}
4+
{% if dict.pdf and version.project.enable_pdf_build %}
55
<li class="module-item col-span">
66
<a class="module-item-title" href="{{ dict.pdf }}">
77
{% blocktrans %}
@@ -21,7 +21,7 @@
2121
</li>
2222
{% endif %}
2323

24-
{% if dict.epub %}
24+
{% if dict.epub and version.project.enable_epub_build %}
2525
<li class="module-item col-span">
2626
<a class="module-item-title" href="{{ dict.epub }}">
2727
{% blocktrans %}

0 commit comments

Comments
 (0)