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

-
-

- {{ url.url }} -

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