From 44a55a4dc14df36c0b6977683ca32c4536fe755a 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 | 83 ++-----------------
.../templates/apis_entities/edit_generic.html | 4 +-
.../templates/apis_metainfo/uri_detail.html | 8 +-
apis_core/apis_metainfo/templates/base.html | 7 +-
.../templates/partials/feather_js.html | 3 -
.../delete_button_generic_ajax_form.html | 14 +---
.../edit_button_generic_ajax_form.html | 13 +--
.../references_button_generic_ajax_form.html | 14 +---
8 files changed, 19 insertions(+), 127 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..121686a83 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,7 @@
{% if object.get_prev_url %}
{% endif %}
@@ -64,57 +53,21 @@
{% 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 +84,7 @@
{% if object.get_next_url %}
{% endif %}
@@ -159,20 +101,7 @@
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 @@
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..50d9d5e18 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 %}
{% endif %}
@@ -40,14 +40,14 @@
{% if user.is_authenticated %}
{% if object.get_edit_url %}
-
+ edit
{% endif %}
{% if object.get_delete_url %}
|
-
+ delete_forever
{% endif %}
{% endif %}
@@ -59,7 +59,7 @@
{% if object.get_next_url %}
{% endif %}
diff --git a/apis_core/apis_metainfo/templates/base.html b/apis_core/apis_metainfo/templates/base.html
index 3ff39f497..7d620de88 100644
--- a/apis_core/apis_metainfo/templates/base.html
+++ b/apis_core/apis_metainfo/templates/base.html
@@ -32,6 +32,8 @@
+
{% block styles %}
{% include "partials/bootstrap4_css.html" %}
@@ -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..207c52966 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,5 @@
{# 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..4b25afe1a 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,5 @@
{# 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..a1839caa6 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,5 @@
-
+ import_contacts