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 %}