X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d4489421ccb20d02ad94d4782478a9a38d438ec5..cafca91e28661f24abbcda91c733de7e77d16e86:/src/catalogue/templates/catalogue/book_detail.html diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html index 4b654dd1d..d2bfda7e4 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -56,13 +56,20 @@ {% endfor %} -{% with extra_info=book.get_extra_info_json %} - {% if extra_info.source_url %} -
- {% trans "Source" %} {% trans "of the book" %} - {% trans "in" %} {% source_name extra_info.source_url %} -
- {% endif %} + {% with extra_info=book.get_extra_info_json %} + {% for source_url in extra_info.source_urls %} +
+ {% trans "Source" %} {% trans "of the book" %} + {% trans "in" %} {% source_name source_url %} +
+ {% empty %} + {% if extra_info.source_url %} +
+ {% trans "Source" %} {% trans "of the book" %} + {% trans "in" %} {% source_name extra_info.source_url %} +
+ {% endif %} + {% endfor %} {% if book|status:user != 'closed' %}
{% trans "Source XML file" %}
{% endif %}