From: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Date: Mon, 11 Oct 2010 10:57:31 +0000 (+0200)
Subject: fixes #883: don't require source_url
X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/6c0acafa4b7bdc0cf3d5efe05e69a4315a2a18df

fixes #883: don't require source_url
---

diff --git a/wolnelektury/templates/catalogue/book_detail.html b/wolnelektury/templates/catalogue/book_detail.html
index 0158eb86a..f4e77f81f 100644
--- a/wolnelektury/templates/catalogue/book_detail.html
+++ b/wolnelektury/templates/catalogue/book_detail.html
@@ -124,7 +124,9 @@
             <h2>{% trans "Other resources" %}</h2>
             <ul>
                 <li><a href="{{ extra_info.about }}">{% trans "Book on project's wiki" %}</a></li>
+                {% if extra_info.source_url %}
                 <li><a href="{{ extra_info.source_url }}">{% trans "Source of the book" %}</a></li>
+                {% endif %}
                 {% if book.gazeta_link %}
                 <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
                 {% endif %}