From 3b9db5f0f6878054de4b7d3a81177210758fe33d Mon Sep 17 00:00:00 2001 From: Dmitriy Lyalyuev Date: Thu, 13 Oct 2022 09:28:23 +0300 Subject: [PATCH] feat: delete link button --- later42/templates/index.html | 40 +++++++++++++++++++++------------- later42/templates/profile.html | 2 +- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/later42/templates/index.html b/later42/templates/index.html index 973b1c7..11e6af0 100644 --- a/later42/templates/index.html +++ b/later42/templates/index.html @@ -1,20 +1,30 @@ {% extends 'base.html' %} {% block content %} - {% if not user.is_authenticated %} - {% include 'docs.html' %} - {% endif %} - {% for url in urls %} - -
- -

{{ url.title }}

-
- + {% if user.is_authenticated and urls|length > 0 %} + {% for url in urls %} + +
+
+ - -
- {% endfor %} +
+ +
+
+ +
+ +
+ {% endfor %} + {% elif user.is_authenticated %} +
+

У вас нет сохраненных ссылок

+
+ {% elif not user.is_authenticated %} + {% include 'docs.html' %} + {% endif %} {% endblock %} diff --git a/later42/templates/profile.html b/later42/templates/profile.html index 9f4bff8..e373a8a 100644 --- a/later42/templates/profile.html +++ b/later42/templates/profile.html @@ -48,4 +48,4 @@

-{% endblock %} \ No newline at end of file +{% endblock %}