From 4d82fefa4ed5e958513526ebce8ec8d35b34f787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sun, 4 Jan 2026 09:39:42 +0100 Subject: [PATCH] Extract inline icons to SVG iconset (#1262) --- bookmarks/static/icons.svg | 112 ++++++++++++++++++ .../templates/bookmarks/bookmark_list.html | 16 ++- .../templates/bookmarks/bookmark_page.html | 15 +-- .../templates/bookmarks/bundle_section.html | 16 +-- .../templates/bookmarks/details/form.html | 4 +- bookmarks/templates/bookmarks/search.html | 23 +--- .../templates/bookmarks/tag_section.html | 16 +-- bookmarks/templates/bundles/index.html | 20 +--- bookmarks/templates/shared/layout.html | 31 ----- bookmarks/templates/shared/modal_header.html | 15 +-- bookmarks/templates/shared/nav_menu.html | 20 +--- bookmarks/templates/tags/index.html | 17 +-- bookmarks/templatetags/bookmarks.py | 1 + .../tests/test_bookmarks_list_template.py | 15 +-- bookmarks/tests/test_bundles_index_view.py | 12 +- 15 files changed, 158 insertions(+), 175 deletions(-) create mode 100644 bookmarks/static/icons.svg diff --git a/bookmarks/static/icons.svg b/bookmarks/static/icons.svg new file mode 100644 index 0000000..d7b0031 --- /dev/null +++ b/bookmarks/static/icons.svg @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bookmarks/templates/bookmarks/bookmark_list.html b/bookmarks/templates/bookmarks/bookmark_list.html index 0ab3b35..7f882da 100644 --- a/bookmarks/templates/bookmarks/bookmark_list.html +++ b/bookmarks/templates/bookmarks/bookmark_list.html @@ -1,6 +1,4 @@ -{% load static %} -{% load shared %} -{% load pagination %} +{% load static shared pagination %} {% if bookmark_list.is_empty %} {% include 'bookmarks/empty_bookmarks.html' %} {% else %} @@ -123,8 +121,8 @@ class="btn btn-link btn-sm btn-icon" data-confirm data-confirm-question="Mark as read?"> - - + + Unread @@ -136,16 +134,16 @@ class="btn btn-link btn-sm btn-icon" data-confirm data-confirm-question="Unshare?"> - - + + Shared {% endif %} {% if bookmark_item.show_notes_button %} diff --git a/bookmarks/templates/bookmarks/bookmark_page.html b/bookmarks/templates/bookmarks/bookmark_page.html index 35cfe34..d4fc239 100644 --- a/bookmarks/templates/bookmarks/bookmark_page.html +++ b/bookmarks/templates/bookmarks/bookmark_page.html @@ -11,19 +11,8 @@ {% bookmark_search bookmark_list.search mode=bookmark_list.search_mode %} {% if bookmark_list.bulk_edit_enabled %} {% endif %} diff --git a/bookmarks/templates/bookmarks/bundle_section.html b/bookmarks/templates/bookmarks/bundle_section.html index eace134..b868f49 100644 --- a/bookmarks/templates/bookmarks/bundle_section.html +++ b/bookmarks/templates/bookmarks/bundle_section.html @@ -1,22 +1,12 @@ +{% load static %} {% if not request.user_profile.hide_bundles %}

Bundles