fixes #883: don't require source_url
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 11 Oct 2010 10:57:31 +0000 (12:57 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 11 Oct 2010 10:57:31 +0000 (12:57 +0200)
wolnelektury/templates/catalogue/book_detail.html

index 0158eb8..f4e77f8 100644 (file)
             <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 %}