diff --git a/Makefile b/Makefile index 051a540..b42f03c 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ test: format: uv run black bookmarks - uv run djlint bookmarks/templates --reformat --quiet + uv run djlint bookmarks/templates --reformat --quiet --warn npx prettier bookmarks/frontend --write npx prettier bookmarks/styles --write diff --git a/bookmarks/templates/bookmarks/archive.html b/bookmarks/templates/bookmarks/archive.html deleted file mode 100644 index c6f86fb..0000000 --- a/bookmarks/templates/bookmarks/archive.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends "shared/layout.html" %} -{% load static %} -{% load shared %} -{% load bookmarks %} -{% block content %} - - {# Bookmark list #} -
-
-

Archived bookmarks

-
- {% bookmark_search bookmark_list.search mode='archived' %} - {% include 'bookmarks/bulk_edit/toggle.html' %} - - - -
-
-
- {% csrf_token %} - {% include 'bookmarks/bulk_edit/bar.html' with disable_actions='bulk_archive' %} -
{% include 'bookmarks/bookmark_list.html' %}
-
-
- {# Filters #} -
- {% include 'bookmarks/bundle_section.html' %} - {% include 'bookmarks/tag_section.html' %} -
-
-{% endblock %} -{% block overlays %} - {% include 'bookmarks/details/modal.html' %} -{% endblock %} diff --git a/bookmarks/templates/bookmarks/bookmark_page.html b/bookmarks/templates/bookmarks/bookmark_page.html new file mode 100644 index 0000000..d490540 --- /dev/null +++ b/bookmarks/templates/bookmarks/bookmark_page.html @@ -0,0 +1,59 @@ +{% extends "shared/layout.html" %} +{% load static shared bookmarks %} +{% block content %} + + {# Bookmark list #} +
+
+

{{ bookmark_list.list_title }}

+
+ {% bookmark_search bookmark_list.search mode=bookmark_list.search_mode %} + {% if bookmark_list.bulk_edit_enabled %} + + {% endif %} + + + +
+
+
+ {% csrf_token %} + {% if bookmark_list.bulk_edit_enabled %} + {% include 'bookmarks/bulk_edit_bar.html' %} + {% endif %} +
{% include 'bookmarks/bookmark_list.html' %}
+
+
+ {# Filters #} +
+ {% if bundles %} + {% include 'bookmarks/bundle_section.html' %} + {% endif %} + {% if user_list %} + {% include 'bookmarks/user_section.html' %} + {% endif %} + {% include 'bookmarks/tag_section.html' %} +
+
+{% endblock %} +{% block overlays %} + {% include 'bookmarks/details/modal.html' %} +{% endblock %} diff --git a/bookmarks/templates/bookmarks/bulk_edit/toggle.html b/bookmarks/templates/bookmarks/bulk_edit/toggle.html deleted file mode 100644 index 9f1cdf2..0000000 --- a/bookmarks/templates/bookmarks/bulk_edit/toggle.html +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/bookmarks/templates/bookmarks/bulk_edit/bar.html b/bookmarks/templates/bookmarks/bulk_edit_bar.html similarity index 83% rename from bookmarks/templates/bookmarks/bulk_edit/bar.html rename to bookmarks/templates/bookmarks/bulk_edit_bar.html index cf0bed6..1e60d82 100644 --- a/bookmarks/templates/bookmarks/bulk_edit/bar.html +++ b/bookmarks/templates/bookmarks/bulk_edit_bar.html @@ -7,8 +7,12 @@