From cfd4a17342e41a5a74699713534a01a147f7372e Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Tue, 9 Jul 2024 15:31:01 +0700 Subject: [PATCH] 14731 htmx plugin list --- netbox/templates/core/htmx/plugins.html | 42 ++++++++++++++++++++++++ netbox/templates/core/plugin_list.html | 43 ++----------------------- 2 files changed, 45 insertions(+), 40 deletions(-) create mode 100644 netbox/templates/core/htmx/plugins.html diff --git a/netbox/templates/core/htmx/plugins.html b/netbox/templates/core/htmx/plugins.html new file mode 100644 index 000000000..6a1b2f8c7 --- /dev/null +++ b/netbox/templates/core/htmx/plugins.html @@ -0,0 +1,42 @@ +{% load buttons %} +{% load helpers %} +{% load i18n %} + + {% for plugin in plugins %} +
+ +
+
+
{{ plugin.name }}
+

By {{ plugin.author }}

+
+ {% if plugin.is_local %} + + {% endif %} + {% if plugin.is_certified %} + + {% endif %} + {% if plugin.is_community %} + + {% endif %} + {% if plugin.is_installed %} + + {% endif %} +
+
+
+
+
+ {% endfor %} diff --git a/netbox/templates/core/plugin_list.html b/netbox/templates/core/plugin_list.html index 1b7d39b72..88f77635c 100644 --- a/netbox/templates/core/plugin_list.html +++ b/netbox/templates/core/plugin_list.html @@ -24,7 +24,7 @@
+ hx-get="{{ request.full_path }}" hx-target="#plugins_list" hx-trigger="keyup changed delay:500ms, search"/> @@ -79,45 +79,8 @@
{# System status #} -