From 20b077baf7bbc917cc67b5a0e75959073a35e93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 22 Dec 2020 23:46:06 +0100 Subject: [PATCH] change up the way additional URLs are displayed; show even if file is private (!) --- .../pile/templates/front_doc_detail.html | 57 +++++++++++-------- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/sdbs_pile/pile/templates/front_doc_detail.html b/sdbs_pile/pile/templates/front_doc_detail.html index f0e7d22..594dd79 100644 --- a/sdbs_pile/pile/templates/front_doc_detail.html +++ b/sdbs_pile/pile/templates/front_doc_detail.html @@ -47,6 +47,30 @@ + + + {% if document.urls.count > 0 %} + + {% for link in document.urls.all %} + + {% endfor %} + {% endif %} + {% else %} + + + + {% if document.urls.count > 1 %} {% for link in document.urls.all|slice:"1:" %} @@ -55,36 +79,21 @@ {% endfor %} {% endif %} - - - {% else %} - - - {% if document.urls.count > 1 %} - - {% for link in document.urls.all|slice:"1:" %} - - {% endfor %} - {% endif %} - - {% endif %} {% else %} + + {% if document.urls.count > 0 %} + + {% for link in document.urls.all %} + + {% endfor %} + {% endif %} {% endif %} {% if document.related.exists %}