diff --git a/data/db.sqlite3 b/data/db.sqlite3 index d310668..1dca30b 100644 Binary files a/data/db.sqlite3 and b/data/db.sqlite3 differ diff --git a/links/templates/links/collection_detail.html b/links/templates/links/collection_detail.html index 0abafab..70914de 100644 --- a/links/templates/links/collection_detail.html +++ b/links/templates/links/collection_detail.html @@ -183,18 +183,19 @@ {% endif %} - -
-
- {% for tag in collection.tags.all %} - - {{ tag.name }} - - {% empty %} - {% trans "No tags" %} - {% endfor %} -
+ {% if collection.tags.exists %} +
+ {% for tag in collection.tags.all %} + {% with number=forloop.counter %} + + {{ tag.name }} + + {% endwith %} + {% endfor %}
+ {% endif %} +
diff --git a/links/templates/links/link_detail.html b/links/templates/links/link_detail.html index a57f9bb..cb450b4 100644 --- a/links/templates/links/link_detail.html +++ b/links/templates/links/link_detail.html @@ -69,20 +69,23 @@
{{ link.description }}
{% endif %} + {% if link.tags.exists %}
{% trans "Tags" %}
-
+
{% for tag in link.tags.all %} - + {% with number=forloop.counter %} + {{ tag.name }} - {% empty %} - {% trans "No tags" %} + {% endwith %} {% endfor %}
+ {% endif %} @@ -268,6 +271,6 @@ padding-right: 1.1428571em; padding-bottom: 0.8571429em; padding-left: 1.1428571em; - } + } {% endblock %} diff --git a/links/templates/links/post_detail.html b/links/templates/links/post_detail.html index 9fd1e36..351ec55 100644 --- a/links/templates/links/post_detail.html +++ b/links/templates/links/post_detail.html @@ -19,13 +19,14 @@ z-index: 50; align-items: center; justify-content: center; + backdrop-filter: blur(4px); } .modal.show { display: flex; } .modal-content { background: white; - border-radius: 0.5rem; + border-radius: 0.75rem; width: 100%; max-width: 28rem; margin: 1rem; @@ -89,17 +90,17 @@

{% trans "Are you sure you want to delete this post? This action cannot be undone." %}

-
+
{% csrf_token %}
@@ -107,93 +108,100 @@
-
-
-
-
- -
+
+
+ +
+ - -
- -
-

{{ post.title }}

+ +
+

{{ post.title }}

{% if post.summary %} -
-

{{ post.summary }}

+
+

{{ post.summary }}

{% endif %} - -
- {% if post.tags.exists %} -
-

{% trans "Tags" %}

-
- {% for tag in post.tags.all %} - - {{ tag.name }} - - {% empty %} - {% trans "No tags" %} - {% endfor %} -
-
- {% endif %} + + + {% if post.tags.exists %} +
+ {% for tag in post.tags.all %} + {% with number=forloop.counter %} + + {{ tag.name }} + + {% endwith %} + {% endfor %}
-
-
+ {% endif %} - -
-
{% trans "Created" %}: {{ post.created_at|date:"Y-m-d H:i" }}
-
-
-
{% trans "Updated" %}: {{ post.updated_at|date:"Y-m-d H:i" }}
+ +
+ + +
+
+
- -
+ +
+
{{ post.content|markdown|safe }}
diff --git a/links/templates/links/post_list.html b/links/templates/links/post_list.html index 9ff45e2..b7bb10e 100644 --- a/links/templates/links/post_list.html +++ b/links/templates/links/post_list.html @@ -2,38 +2,39 @@ {% load i18n %} {% block content %} -
-
-

{% trans "Posts" %}

- +
+ +
-
+
+ class="w-full px-3 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent">
+ class="w-full px-3 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent">
- -
+
{% if is_filtered %} + class="flex-1 sm:flex-none text-center text-gray-600 hover:text-gray-800 px-4 py-2 rounded-md border border-gray-300 hover:bg-gray-50 transition duration-150"> {% trans "Clear" %} {% endif %} @@ -42,79 +43,76 @@
-
+