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/displays | |
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/displays')
-rw-r--r-- | src/lib/Bcfg2/Reporting/templates/displays/summary.html | 2 | ||||
-rw-r--r-- | src/lib/Bcfg2/Reporting/templates/displays/timing.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Reporting/templates/displays/summary.html b/src/lib/Bcfg2/Reporting/templates/displays/summary.html index 53f504c15..a9082aeee 100644 --- a/src/lib/Bcfg2/Reporting/templates/displays/summary.html +++ b/src/lib/Bcfg2/Reporting/templates/displays/summary.html @@ -30,7 +30,7 @@ hide_tables[{{ forloop.counter0 }}] = "table_{{ summary.name }}"; <table id='table_{{ summary.name }}' class='entry_list'> {% for node in summary.nodes|sort_interactions_by_name %} - <tr class='{% cycle listview,listview_alt %}'> + <tr class='{% cycle 'listview' 'listview_alt' %}'> <td><a href='{% url "reports_client_detail_pk" hostname=node.client.name pk=node.id %}'>{{ node.client.name }}</a></td> </tr> {% endfor %} diff --git a/src/lib/Bcfg2/Reporting/templates/displays/timing.html b/src/lib/Bcfg2/Reporting/templates/displays/timing.html index 2d24fc1c2..69d56b62f 100644 --- a/src/lib/Bcfg2/Reporting/templates/displays/timing.html +++ b/src/lib/Bcfg2/Reporting/templates/displays/timing.html @@ -23,7 +23,7 @@ <td>Total</td> </tr> {% for metric in metrics|dictsort:"name" %} - <tr class='{% cycle listview,listview_alt %}'> + <tr class='{% cycle 'listview' 'listview_alt' %}'> <td><a style='font-size: 100%' href='{% url "reports_client_detail" hostname=metric.name %}'>{{ metric.name }}</a></td> {% for mitem in metric|build_metric_list %} |