From 25f501fb12bc33d10765e41fdea00ec7de22d4e6 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Wed, 15 Sep 2021 12:41:21 -0400 Subject: [PATCH] Remove obsolete responsive_table.html template --- .../templates/dcim/inc/devicetype_component_table.html | 10 ++++++---- netbox/templates/home.html | 4 ++-- netbox/templates/import_success.html | 5 ++++- netbox/templates/inc/responsive_table.html | 5 ----- netbox/templates/ipam/aggregate.html | 2 +- netbox/templates/ipam/vlan.html | 5 +++-- netbox/templates/utilities/obj_table.html | 9 +++++++-- netbox/templates/virtualization/cluster/devices.html | 5 +++-- .../virtualization/cluster/virtual_machines.html | 5 +++-- 9 files changed, 29 insertions(+), 21 deletions(-) delete mode 100644 netbox/templates/inc/responsive_table.html diff --git a/netbox/templates/dcim/inc/devicetype_component_table.html b/netbox/templates/dcim/inc/devicetype_component_table.html index dd79a668c..900e0f818 100644 --- a/netbox/templates/dcim/inc/devicetype_component_table.html +++ b/netbox/templates/dcim/inc/devicetype_component_table.html @@ -1,4 +1,6 @@ {% load helpers %} +{% load render_table from django_tables2 %} + {% if perms.dcim.change_devicetype %}
{% csrf_token %} @@ -6,8 +8,8 @@
{{ title }}
-
- {% include 'inc/responsive_table.html' %} +
+ {% render_table table 'inc/table.html' %}
diff --git a/netbox/templates/import_success.html b/netbox/templates/import_success.html index 6feb7dab5..122555b81 100644 --- a/netbox/templates/import_success.html +++ b/netbox/templates/import_success.html @@ -1,9 +1,12 @@ {% extends 'base/layout.html' %} +{% load render_table from django_tables2 %} {% block title %}Import Completed{% endblock %} {% block content %} - {% include 'inc/responsive_table.html' %} +
+ {% render_table table 'inc/table.html' %} +
{% if return_url %} View All {% endif %} diff --git a/netbox/templates/inc/responsive_table.html b/netbox/templates/inc/responsive_table.html deleted file mode 100644 index a6aaf5a6f..000000000 --- a/netbox/templates/inc/responsive_table.html +++ /dev/null @@ -1,5 +0,0 @@ -{% load render_table from django_tables2 %} - -
- {% render_table table 'inc/table.html' %} -
diff --git a/netbox/templates/ipam/aggregate.html b/netbox/templates/ipam/aggregate.html index 43760ed80..29aeec1ef 100644 --- a/netbox/templates/ipam/aggregate.html +++ b/netbox/templates/ipam/aggregate.html @@ -77,6 +77,6 @@
{% include 'utilities/obj_table.html' with table=prefix_table heading='Child Prefixes' bulk_edit_url='ipam:prefix_bulk_edit' bulk_delete_url='ipam:prefix_bulk_delete' %} -
+
{% endblock %} diff --git a/netbox/templates/ipam/vlan.html b/netbox/templates/ipam/vlan.html index 33541827f..5ecd6efed 100644 --- a/netbox/templates/ipam/vlan.html +++ b/netbox/templates/ipam/vlan.html @@ -1,5 +1,6 @@ {% extends 'ipam/vlan/base.html' %} {% load helpers %} +{% load render_table from django_tables2 %} {% load plugins %} {% block content %} @@ -92,8 +93,8 @@
Prefixes
-
- {% include 'inc/responsive_table.html' with table=prefix_table %} +
+ {% render_table prefix_table 'inc/table.html' %}
{% if perms.ipam.add_prefix %} {% endif %} - {% include table_template|default:'inc/responsive_table.html' %} +
+ {% render_table table 'inc/table.html' %} +
{% block extra_actions %}{% endblock %} @@ -48,7 +51,9 @@ {% else %} - {% include table_template|default:'inc/responsive_table.html' %} +
+ {% render_table table 'inc/table.html' %} +
{% endif %} diff --git a/netbox/templates/virtualization/cluster/devices.html b/netbox/templates/virtualization/cluster/devices.html index 658162243..9f4b7fc3e 100644 --- a/netbox/templates/virtualization/cluster/devices.html +++ b/netbox/templates/virtualization/cluster/devices.html @@ -1,5 +1,6 @@ {% extends 'virtualization/cluster/base.html' %} {% load helpers %} +{% load render_table from django_tables2 %} {% block content %}
@@ -10,8 +11,8 @@
{% csrf_token %} -
- {% include 'inc/responsive_table.html' with table=devices_table %} +
+ {% render_table devices_table 'inc/table.html' %}
{% if perms.virtualization.change_cluster %}