From ec26c8677d165008ccd0d20625181b6bf7eef7d8 Mon Sep 17 00:00:00 2001 From: Gregor Pirgie <78487560+gregorpirgie@users.noreply.github.com> Date: Wed, 13 Sep 2023 17:22:04 +0200 Subject: [PATCH] feat: replaces feather icons with material-symbols - removes logic for rendering feather icons - adds link to material symbol stylesheet to base.html - replaces all feather icons with material symbols --- .../detail_views/detail_generic.html | 89 +++---------------- .../templates/apis_entities/edit_generic.html | 4 +- .../templates/apis_metainfo/uri_detail.html | 9 +- apis_core/apis_metainfo/templates/base.html | 15 ++-- .../templates/partials/feather_js.html | 3 - .../delete_button_generic_ajax_form.html | 15 +--- .../edit_button_generic_ajax_form.html | 14 +-- .../references_button_generic_ajax_form.html | 15 +--- 8 files changed, 33 insertions(+), 131 deletions(-) delete mode 100644 apis_core/apis_metainfo/templates/partials/feather_js.html diff --git a/apis_core/apis_entities/templates/apis_entities/detail_views/detail_generic.html b/apis_core/apis_entities/templates/apis_entities/detail_views/detail_generic.html index fe11973bd..cd5e184a8 100644 --- a/apis_core/apis_entities/templates/apis_entities/detail_views/detail_generic.html +++ b/apis_core/apis_entities/templates/apis_entities/detail_views/detail_generic.html @@ -29,18 +29,8 @@ {% if object.get_prev_url %}

- - - + chevron_left +

{% endif %} @@ -64,57 +54,24 @@

{% if user.is_authenticated %} {% if object.get_edit_url %} - - - - + edit + {% endif %} {% if object.get_delete_url %} | - - - - + delete + {% endif %} {% if object.get_duplicate_url %} | - - - - + content_copy + {% endif %} {% endif %} @@ -131,18 +88,8 @@

{% if object.get_next_url %}

- - - + chevron_right +

{% endif %} @@ -159,20 +106,8 @@

General Info - - - - - + database +

diff --git a/apis_core/apis_entities/templates/apis_entities/edit_generic.html b/apis_core/apis_entities/templates/apis_entities/edit_generic.html index cc4fb142d..b1d609a6e 100644 --- a/apis_core/apis_entities/templates/apis_entities/edit_generic.html +++ b/apis_core/apis_entities/templates/apis_entities/edit_generic.html @@ -33,10 +33,10 @@

{{ entity_type }}s {{ instance }} - + visibility - + database

diff --git a/apis_core/apis_metainfo/templates/apis_metainfo/uri_detail.html b/apis_core/apis_metainfo/templates/apis_metainfo/uri_detail.html index 808d4d614..43606f80c 100644 --- a/apis_core/apis_metainfo/templates/apis_metainfo/uri_detail.html +++ b/apis_core/apis_metainfo/templates/apis_metainfo/uri_detail.html @@ -18,7 +18,7 @@ {% if object.get_prev_url %}

- + chevron_left

{% endif %} @@ -40,14 +40,15 @@

{% if user.is_authenticated %} {% if object.get_edit_url %} - + edit + {% endif %} {% if object.get_delete_url %} | - + delete_forever {% endif %} {% endif %} @@ -59,7 +60,7 @@

{% if object.get_next_url %}

- + chevron_right

{% endif %} diff --git a/apis_core/apis_metainfo/templates/base.html b/apis_core/apis_metainfo/templates/base.html index e9a641c44..0b314e7e4 100644 --- a/apis_core/apis_metainfo/templates/base.html +++ b/apis_core/apis_metainfo/templates/base.html @@ -30,9 +30,11 @@ href="{{ SHARED_URL }}favicon/favicon-16x16.png" /> - + href="{{ SHARED_URL }}favicon/safari-pinned-tab.svg" + color="#00aba9" /> + {% block styles %} {% include "partials/bootstrap4_css.html" %} {% endblock styles %} @@ -145,7 +147,7 @@ {% block scripts %} - {% include "partials/feather_js.html" %} {% include "partials/bootstrap4_js.html" %} diff --git a/apis_core/apis_metainfo/templates/partials/feather_js.html b/apis_core/apis_metainfo/templates/partials/feather_js.html deleted file mode 100644 index 34d388c15..000000000 --- a/apis_core/apis_metainfo/templates/partials/feather_js.html +++ /dev/null @@ -1,3 +0,0 @@ -{# include feather icons as described on https://github.com/feathericons/feather#2-include #} - - diff --git a/apis_core/apis_relations/templates/apis_relations/delete_button_generic_ajax_form.html b/apis_core/apis_relations/templates/apis_relations/delete_button_generic_ajax_form.html index 96f3a18c1..b1e1df58c 100644 --- a/apis_core/apis_relations/templates/apis_relations/delete_button_generic_ajax_form.html +++ b/apis_core/apis_relations/templates/apis_relations/delete_button_generic_ajax_form.html @@ -2,17 +2,6 @@ {# djlint:off #} {# djlint:on #} - - - - +delete + diff --git a/apis_core/apis_relations/templates/apis_relations/edit_button_generic_ajax_form.html b/apis_core/apis_relations/templates/apis_relations/edit_button_generic_ajax_form.html index f47e81f2a..730259547 100644 --- a/apis_core/apis_relations/templates/apis_relations/edit_button_generic_ajax_form.html +++ b/apis_core/apis_relations/templates/apis_relations/edit_button_generic_ajax_form.html @@ -2,16 +2,6 @@ {# djlint:off #} {# djlint:on #} - - - +edit + diff --git a/apis_core/apis_relations/templates/apis_relations/references_button_generic_ajax_form.html b/apis_core/apis_relations/templates/apis_relations/references_button_generic_ajax_form.html index 902fd7b9d..5ba9413fe 100644 --- a/apis_core/apis_relations/templates/apis_relations/references_button_generic_ajax_form.html +++ b/apis_core/apis_relations/templates/apis_relations/references_button_generic_ajax_form.html @@ -2,17 +2,6 @@ - - - - + import_contacts +