workaround for django ticket 17111; cover in api fix
[wolnelektury.git] / wolnelektury / templates / catalogue / book_wide.html
index 9c5c856..c683fce 100644 (file)
@@ -52,6 +52,7 @@
     </ul>
   </div>
   <div class="other-download">
+       {% if related.media.mp3 or related.media.ogg %}
     <h2 class="mono">{% trans "Download" %}</h2>
     <ul class="plain">
       <li>
        {% if related.media.ogg %}<a href="{% url download_zip_ogg book.slug %}">OGG</a>{% endif %}.
        {% endif %}
       </li>
+      {% comment %}
       <li>
        <a href="{% url custom_pdf_form %}?slug={{book.slug}}" id="custom-pdf" class="ajaxable">{% trans "Download a custom PDF" %}</a>
       </li>
+      {% endcomment %}
     </ul>
+    {% endif %}
   </div>
 </div>
 {% endblock %}