14731 change to table

This commit is contained in:
Arthur Hanson 2024-07-15 16:13:08 +07:00
parent e9dd15443c
commit 578056ec0f
3 changed files with 20 additions and 27 deletions

View File

@ -768,8 +768,8 @@ def get_catalog_plugins(plugins):
def get_plugins(): def get_plugins():
# if plugins := cache.get('plugins-catalog-feed'): if plugins := cache.get('plugins-catalog-feed'):
# return plugins return plugins
plugins = {} plugins = {}
plugins = get_local_plugins(plugins) plugins = get_local_plugins(plugins)

View File

@ -1,9 +0,0 @@
{% load buttons %}
{% load helpers %}
{% load i18n %}
<div class="card">
<div class="table-responsive" id="object_list">
{% include 'htmx/table.html' %}
</div>
</div>

View File

@ -1,4 +1,4 @@
{% extends 'generic/_base.html' %} {% extends 'generic/object_list.html' %}
{% load buttons %} {% load buttons %}
{% load helpers %} {% load helpers %}
{% load i18n %} {% load i18n %}
@ -18,6 +18,7 @@
{% endblock tabs %} {% endblock tabs %}
{% block content %} {% block content %}
<div class="tab-pane show active" id="object-list" role="tabpanel" aria-labelledby="object-list-tab">
<p>{% trans "NetBox plugins enable you to document and model new kinds of resources, connect automations, add workflows, and much more." %}</p> <p>{% trans "NetBox plugins enable you to document and model new kinds of resources, connect automations, add workflows, and much more." %}</p>
<div class="row mb-3" id="results"> <div class="row mb-3" id="results">
@ -30,12 +31,13 @@
</span> </span>
</div> </div>
</div> </div>
</div> </div>
{# System status #} <div class="card">
<div class="row mb-3 htmx-container" id="plugin_list"> <div class="htmx-container table-responsive" id="object_list">
{% include 'core/htmx/plugins.html' %} {% include 'htmx/table.html' %}
</div>
</div> </div>
</div>
{% endblock content %} {% endblock content %}