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/clients/detail.html | 8 ++++---- src/lib/Bcfg2/Reporting/templates/clients/detailed-list.html | 2 +- src/lib/Bcfg2/Reporting/templates/clients/manage.html | 2 +- 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 +- src/lib/Bcfg2/Reporting/templates/displays/summary.html | 2 +- src/lib/Bcfg2/Reporting/templates/displays/timing.html | 2 +- src/lib/Bcfg2/Reporting/templates/widgets/interaction_list.inc | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/lib/Bcfg2/Reporting/templates/clients/detail.html b/src/lib/Bcfg2/Reporting/templates/clients/detail.html index 4258fc11d..5a638f2b1 100644 --- a/src/lib/Bcfg2/Reporting/templates/clients/detail.html +++ b/src/lib/Bcfg2/Reporting/templates/clients/detail.html @@ -73,7 +73,7 @@ span.history_links a { {% endif %} - + {% if forloop.last %} @@ -91,7 +91,7 @@ span.history_links a { {% endif %} - + {% if forloop.last %} @@ -109,7 +109,7 @@ span.history_links a { {% for entry in entry_list %} - + @@ -128,7 +128,7 @@ span.history_links a {
{{entry.entry_type}} {{entry.name}}
{% for failure in interaction.failures.all %} - + diff --git a/src/lib/Bcfg2/Reporting/templates/clients/detailed-list.html b/src/lib/Bcfg2/Reporting/templates/clients/detailed-list.html index 56594554c..65c53a76c 100644 --- a/src/lib/Bcfg2/Reporting/templates/clients/detailed-list.html +++ b/src/lib/Bcfg2/Reporting/templates/clients/detailed-list.html @@ -21,7 +21,7 @@ {% for entry in entry_list %} - + diff --git a/src/lib/Bcfg2/Reporting/templates/clients/manage.html b/src/lib/Bcfg2/Reporting/templates/clients/manage.html index 2379cfe6a..3f080c52e 100644 --- a/src/lib/Bcfg2/Reporting/templates/clients/manage.html +++ b/src/lib/Bcfg2/Reporting/templates/clients/manage.html @@ -21,7 +21,7 @@ {% for client in clients %} - +