From 110a6b03e3018a52e65769fd4d6534e7e912690e Mon Sep 17 00:00:00 2001 From: Evelyn Alicke Date: Sun, 19 Jun 2022 16:51:28 +0200 Subject: [PATCH] check if links are present --- leftists/templates/interface/linkedlist.html | 4 ++++ leftists/templates/interface/overview.html | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/leftists/templates/interface/linkedlist.html b/leftists/templates/interface/linkedlist.html index 8d0636b..64690db 100644 --- a/leftists/templates/interface/linkedlist.html +++ b/leftists/templates/interface/linkedlist.html @@ -4,6 +4,7 @@

List of Lonks

+{% if object_list is not empty %} @@ -18,5 +19,8 @@ {% endfor %}
+{% else %} +

There are no links in the database for this domain yet.

+{% endif %}
{% endblock %} diff --git a/leftists/templates/interface/overview.html b/leftists/templates/interface/overview.html index 38d659c..89275c9 100644 --- a/leftists/templates/interface/overview.html +++ b/leftists/templates/interface/overview.html @@ -9,6 +9,7 @@

List of Lonks

+{% if links is not empty %} @@ -23,5 +24,8 @@ {% endfor %}
+{% else %} +

There are no links in the database yet.

+{% endif %}
{% endblock %}