From 483b6c8676f1b195f0b14ab54de732fbe0f5b684 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 21 Mar 2018 17:58:08 +0100 Subject: Reporting: Fix syntax of "cycle" templatetag The backwords compatible syntax was removed in 1.10. The "new" syntax is available since 11 years [1] and was already available in django 1.0 [2]. > Support for the syntax of {% cycle %} that uses comma-separated > arguments is removed. [3] [1]: https://code.djangoproject.com/ticket/208 [2]: https://github.com/django/django/commit/09145d2e5f [3]: https://docs.djangoproject.com/en/2.0/releases/1.10/#features-removed-in-1-10 --- src/lib/Bcfg2/Reporting/templates/config_items/common.html | 2 +- src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html | 2 +- src/lib/Bcfg2/Reporting/templates/config_items/listing.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/Bcfg2/Reporting/templates/config_items') diff --git a/src/lib/Bcfg2/Reporting/templates/config_items/common.html b/src/lib/Bcfg2/Reporting/templates/config_items/common.html index 1445182be..8c2df8db1 100644 --- a/src/lib/Bcfg2/Reporting/templates/config_items/common.html +++ b/src/lib/Bcfg2/Reporting/templates/config_items/common.html @@ -28,7 +28,7 @@ {% for item in type_list %} - + diff --git a/src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html b/src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html index 160d9c738..4d9c42391 100644 --- a/src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html +++ b/src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html @@ -17,7 +17,7 @@ {% for item, inters in items %} {% for inter in inters %} - +
TypeNameCountReason
{{ item.ENTRY_TYPE }} {{ item.name }} {{ item.num_entries }}
NameTimestampStateReason
{{inter.client.name}} {{inter.timestamp|date:"SHORT_DATETIME_FORMAT"|safe}} diff --git a/src/lib/Bcfg2/Reporting/templates/config_items/listing.html b/src/lib/Bcfg2/Reporting/templates/config_items/listing.html index 1ae82dab5..b8fba61ce 100644 --- a/src/lib/Bcfg2/Reporting/templates/config_items/listing.html +++ b/src/lib/Bcfg2/Reporting/templates/config_items/listing.html @@ -21,7 +21,7 @@ {% for entry in type_data %} - + -- cgit v1.2.3-1-g7c22
NameCountReason
{{entry.name}} {{entry.num_entries}} {{entry.short_list|join:","}}