From 13985de6ad4b54067f2ca7f93f1892f5c70fbaf3 Mon Sep 17 00:00:00 2001 From: Per Stark Date: Fri, 9 May 2025 12:23:06 +0200 Subject: [PATCH] fix: template fixes --- html-router/templates/auth/signin_form.html | 2 +- html-router/templates/body_base.html | 2 +- .../templates/content/content_list.html | 25 ++++++++++--------- .../templates/index/signed_in/base.html | 2 +- html-router/templates/navigation_bar.html | 23 +++-------------- html-router/templates/sidebar.html | 3 +-- 6 files changed, 21 insertions(+), 36 deletions(-) diff --git a/html-router/templates/auth/signin_form.html b/html-router/templates/auth/signin_form.html index d2af81a..3a7cd3b 100644 --- a/html-router/templates/auth/signin_form.html +++ b/html-router/templates/auth/signin_form.html @@ -4,7 +4,7 @@ } -
+

Minne diff --git a/html-router/templates/body_base.html b/html-router/templates/body_base.html index 8062616..af8e9dd 100644 --- a/html-router/templates/body_base.html +++ b/html-router/templates/body_base.html @@ -10,7 +10,7 @@ {% include "navigation_bar.html" %} -
+
{% block main %}{% endblock %}

diff --git a/html-router/templates/content/content_list.html b/html-router/templates/content/content_list.html index 80d65da..cccf9e0 100644 --- a/html-router/templates/content/content_list.html +++ b/html-router/templates/content/content_list.html @@ -1,29 +1,23 @@
{% for text_content in text_contents %} -
+
{% if text_content.url_info %} - +
+ website screenshot +
{% endif %}

{% if text_content.url_info %} - {{text_content.url_info.title}} + {{text_content.url_info.title}} {% elif text_content.file_info %} {{text_content.file_info.file_name}} {% else %} {{text_content.text}} {% endif %}

-
- {% if text_content.url_info %} - {% include "icons/globe_icon.html" %} - {% elif text_content.file_info %} - {% include "icons/document_icon.html" %} - {% else %} - {% include "icons/chat_icon.html" %} - {% endif %} -

@@ -31,6 +25,13 @@

{{ text_content.category }}
+ {% if text_content.url_info %} + + {% endif %}