diff --git a/Makefile b/Makefile
index e1b13ef..051a540 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ test:
format:
uv run black bookmarks
+ uv run djlint bookmarks/templates --reformat --quiet
npx prettier bookmarks/frontend --write
npx prettier bookmarks/styles --write
diff --git a/README.md b/README.md
index 085377a..6393571 100644
--- a/README.md
+++ b/README.md
@@ -98,7 +98,7 @@ make test
### Formatting
-Format Python code with black, and JavaScript code with prettier:
+Format Python code with black, Django templates with djlint, and JavaScript code with prettier:
```
make format
```
diff --git a/bookmarks/templates/admin/background_tasks.html b/bookmarks/templates/admin/background_tasks.html
index a0f341a..19815e1 100644
--- a/bookmarks/templates/admin/background_tasks.html
+++ b/bookmarks/templates/admin/background_tasks.html
@@ -1,24 +1,23 @@
{% extends "admin/base_site.html" %}
-
{% block content %}
-
- | ID |
- Name |
- Args |
- Retries |
-
+
+ | ID |
+ Name |
+ Args |
+ Retries |
+
- {% for task in tasks %}
-
- | {{ task.id }} |
- {{ task.name }} |
- {{ task.args }} |
- {{ task.retries }} |
-
- {% endfor %}
+ {% for task in tasks %}
+
+ | {{ task.id }} |
+ {{ task.name }} |
+ {{ task.args }} |
+ {{ task.retries }} |
+
+ {% endfor %}
diff --git a/bookmarks/templates/bookmarks/archive.html b/bookmarks/templates/bookmarks/archive.html
index a0d632c..c6f86fb 100644
--- a/bookmarks/templates/bookmarks/archive.html
+++ b/bookmarks/templates/bookmarks/archive.html
@@ -1,12 +1,9 @@
-{% extends "bookmarks/layout.html" %}
+{% extends "shared/layout.html" %}
{% load static %}
{% load shared %}
{% load bookmarks %}
-
{% block content %}
-
-
+
{# Bookmark list #}
-
-
{# Filters #}
{% include 'bookmarks/bundle_section.html' %}
@@ -39,12 +32,6 @@
{% endblock %}
-
{% block overlays %}
- {# Bookmark details #}
-
- {% if details %}
- {% include 'bookmarks/details/modal.html' %}
- {% endif %}
-
+ {% include 'bookmarks/details/modal.html' %}
{% endblock %}
diff --git a/bookmarks/templates/bookmarks/bookmark_list.html b/bookmarks/templates/bookmarks/bookmark_list.html
index 41d76c6..0ab3b35 100644
--- a/bookmarks/templates/bookmarks/bookmark_list.html
+++ b/bookmarks/templates/bookmarks/bookmark_list.html
@@ -1,17 +1,18 @@
{% load static %}
{% load shared %}
{% load pagination %}
-
{% if bookmark_list.is_empty %}
{% include 'bookmarks/empty_bookmarks.html' %}
{% else %}
{% for bookmark_item in bookmark_list.items %}
- -
{% if bookmark_list.show_url %}
{% endif %}
{% if bookmark_list.description_display == 'inline' %}
{% if bookmark_item.tags %}
- {% for tag in bookmark_item.tags %}
- #{{ tag.name }}
- {% endfor %}
-
- {% endif %}
- {% if bookmark_item.tags and bookmark_item.description %} | {% endif %}
- {% if bookmark_item.description %}
-
{{ bookmark_item.description }}
+ {% for tag in bookmark_item.tags %}
#{{ tag.name }}{% endfor %}
+
{% endif %}
+ {% if bookmark_item.tags and bookmark_item.description %}|{% endif %}
+ {% if bookmark_item.description %}
{{ bookmark_item.description }}{% endif %}
{% else %}
- {% if bookmark_item.description %}
-
{{ bookmark_item.description }}
- {% endif %}
+ {% if bookmark_item.description %}
{{ bookmark_item.description }}
{% endif %}
{% if bookmark_item.tags %}
{% endif %}
{% endif %}
@@ -73,21 +68,19 @@
- {{ bookmark_item.display_date }}
-
+ rel="noopener">{{ bookmark_item.display_date }}
{% else %}
{{ bookmark_item.display_date }}
{% endif %}
- {% if not bookmark_list.is_preview %}
-
|
- {% endif %}
+ {% if not bookmark_list.is_preview %}
|{% endif %}
{% endif %}
{% if not bookmark_list.is_preview %}
{# View link is visible for both owned and shared bookmarks #}
{% if bookmark_list.show_view_action %}
-
View
+
View
{% endif %}
{% if bookmark_item.is_editable %}
{# Bookmark owner actions #}
@@ -96,33 +89,40 @@
{% endif %}
{% if bookmark_list.show_archive_action %}
{% if bookmark_item.is_archived %}
-
+
{% else %}
-
+
{% endif %}
{% endif %}
{% if bookmark_list.show_remove_action %}
-
+
{% endif %}
{% else %}
{# Shared bookmark actions #}
Shared by
- {{ bookmark_item.owner.username }}
-
+
{{ bookmark_item.owner.username }}
+
{% endif %}
{% if bookmark_item.has_extra_actions %}
{% if bookmark_list.show_preview_images %}
{% if bookmark_item.preview_image_file %}
-

+

{% else %}
+
{% endif %}
{% endif %}
{% endfor %}
-
{% endif %}
+
diff --git a/bookmarks/templates/bookmarks/bulk_edit/bar.html b/bookmarks/templates/bookmarks/bulk_edit/bar.html
index ba75138..cf0bed6 100644
--- a/bookmarks/templates/bookmarks/bulk_edit/bar.html
+++ b/bookmarks/templates/bookmarks/bulk_edit/bar.html
@@ -1,42 +1,41 @@
{% load shared %}
{% htmlmin %}
-
-
-
-
-
-
-
-
-
+
{% endhtmlmin %}
diff --git a/bookmarks/templates/bookmarks/bulk_edit/toggle.html b/bookmarks/templates/bookmarks/bulk_edit/toggle.html
index 00b477c..9f1cdf2 100644
--- a/bookmarks/templates/bookmarks/bulk_edit/toggle.html
+++ b/bookmarks/templates/bookmarks/bulk_edit/toggle.html
@@ -1,9 +1,16 @@
diff --git a/bookmarks/templates/bookmarks/bundle_section.html b/bookmarks/templates/bookmarks/bundle_section.html
index e3ec1cd..eace134 100644
--- a/bookmarks/templates/bookmarks/bundle_section.html
+++ b/bookmarks/templates/bookmarks/bundle_section.html
@@ -4,12 +4,19 @@
Bundles
diff --git a/bookmarks/templates/bookmarks/close.html b/bookmarks/templates/bookmarks/close.html
index dd18e6c..f4b9263 100644
--- a/bookmarks/templates/bookmarks/close.html
+++ b/bookmarks/templates/bookmarks/close.html
@@ -1,9 +1,7 @@
-{% extends "bookmarks/layout.html" %}
-
+{% extends "shared/layout.html" %}
{% block content %}
You can now close this window.
{% endblock %}
-
diff --git a/bookmarks/templates/bookmarks/details/asset_icon.html b/bookmarks/templates/bookmarks/details/asset_icon.html
index 6853fba..abca425 100644
--- a/bookmarks/templates/bookmarks/details/asset_icon.html
+++ b/bookmarks/templates/bookmarks/details/asset_icon.html
@@ -1,42 +1,70 @@
{% if asset.content_type == 'text/html' %}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
{% elif asset.content_type == 'application/pdf' %}
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
{% elif asset.content_type == 'image/png' or asset.content_type == 'image/jpeg' or asset.content_type == 'image.gif' %}
-
-
-
-
-
-
+
+
+
+
+
+
{% else %}
-
-
-
-
+
+
+
+
-{% endif %}
\ No newline at end of file
+{% endif %}
diff --git a/bookmarks/templates/bookmarks/details/assets.html b/bookmarks/templates/bookmarks/details/assets.html
index 6dc3e7d..0bfa022 100644
--- a/bookmarks/templates/bookmarks/details/assets.html
+++ b/bookmarks/templates/bookmarks/details/assets.html
@@ -3,49 +3,55 @@
{% for asset in details.assets %}
-
- {% include 'bookmarks/details/asset_icon.html' %}
-
+
{% include 'bookmarks/details/asset_icon.html' %}
-
- {{ asset.display_name }}
- {% if asset.status == 'pending' %}(queued){% endif %}
- {% if asset.status == 'failure' %}(failed){% endif %}
-
- {% if asset.file_size %}
- {{ asset.file_size|filesizeformat }}
- {% endif %}
+
+ {{ asset.display_name }}
+ {% if asset.status == 'pending' %}(queued){% endif %}
+ {% if asset.status == 'failure' %}(failed){% endif %}
+
+ {% if asset.file_size %}{{ asset.file_size|filesizeformat }}{% endif %}
{% if asset.file %}
-
View
+
View
{% endif %}
{% if details.is_editable %}
-
+
{% endif %}
{% endfor %}
{% endif %}
-
{% if details.is_editable %}
{% if details.snapshots_enabled %}
-
+
{% endif %}
{% if details.uploads_enabled %}
-
-
+
+
{% endif %}
{% endif %}
-
\ No newline at end of file
+
diff --git a/bookmarks/templates/bookmarks/details/form.html b/bookmarks/templates/bookmarks/details/form.html
index f2cecb9..254e06e 100644
--- a/bookmarks/templates/bookmarks/details/form.html
+++ b/bookmarks/templates/bookmarks/details/form.html
@@ -1,21 +1,26 @@
{% load static %}
{% load shared %}
-
-