diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2018-03-21 17:58:08 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2018-03-21 18:11:44 +0100 |
commit | 483b6c8676f1b195f0b14ab54de732fbe0f5b684 (patch) | |
tree | 016d554bf1d65dda1db0493a6aa068b4ee7d990b /src/lib/Bcfg2/Reporting/templates/clients/detail.html | |
parent | e586c4236efbb6b639895839f123cb847d69180b (diff) | |
download | bcfg2-483b6c8676f1b195f0b14ab54de732fbe0f5b684.tar.gz bcfg2-483b6c8676f1b195f0b14ab54de732fbe0f5b684.tar.bz2 bcfg2-483b6c8676f1b195f0b14ab54de732fbe0f5b684.zip |
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
Diffstat (limited to 'src/lib/Bcfg2/Reporting/templates/clients/detail.html')
-rw-r--r-- | src/lib/Bcfg2/Reporting/templates/clients/detail.html | 8 |
1 files changed, 4 insertions, 4 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 { </div> <table id='groups_table' class='entry_list' style='display: none'> {% endif %} - <tr class='{% cycle listview,listview_alt %}'> + <tr class='{% cycle 'listview' 'listview_alt' %}'> <td class='entry_list_type'>{{group}}</td> </tr> {% if forloop.last %} @@ -91,7 +91,7 @@ span.history_links a { </div> <table id='bundles_table' class='entry_list' style='display: none'> {% endif %} - <tr class='{% cycle listview,listview_alt %}'> + <tr class='{% cycle 'listview' 'listview_alt' %}'> <td class='entry_list_type'>{{bundle}}</td> </tr> {% if forloop.last %} @@ -109,7 +109,7 @@ span.history_links a { </div> <table id='{{entry_type}}_table' class='entry_list'> {% for entry in entry_list %} - <tr class='{% cycle listview,listview_alt %}'> + <tr class='{% cycle 'listview' 'listview_alt' %}'> <td class='entry_list_type'>{{entry.entry_type}}</td> <td><a href="{% url "reports_item" entry.class_name entry.pk interaction.pk %}"> {{entry.name}}</a></td> @@ -128,7 +128,7 @@ span.history_links a { </div> <table id='failures_table' class='entry_list' style='display: none'> {% for failure in interaction.failures.all %} - <tr class='{% cycle listview,listview_alt %}'> + <tr class='{% cycle 'listview' 'listview_alt' %}'> <td class='entry_list_type'>{{failure.entry_type}}</td> <td><a href="{% url "reports_item" failure.class_name failure.pk interaction.pk %}"> {{failure.name}}</a></td> |