diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2013-06-05 10:43:43 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2013-06-05 10:43:43 -0500 |
commit | 8d561f220c29278b2e81484a38bc12d729baa701 (patch) | |
tree | 0b5db1b4001c2505de254e3b0e7f81563f6f1818 /src/lib/Bcfg2/Reporting/templates/displays/timing.html | |
parent | 484d8100cdcdfa316cbf9568928697044cc331b8 (diff) | |
parent | fd993228d36c166593285a8ebbd2e6fb45c36d4d (diff) | |
download | bcfg2-8d561f220c29278b2e81484a38bc12d729baa701.tar.gz bcfg2-8d561f220c29278b2e81484a38bc12d729baa701.tar.bz2 bcfg2-8d561f220c29278b2e81484a38bc12d729baa701.zip |
Merge branch 'django-1.5' into maint
Diffstat (limited to 'src/lib/Bcfg2/Reporting/templates/displays/timing.html')
-rw-r--r-- | src/lib/Bcfg2/Reporting/templates/displays/timing.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/lib/Bcfg2/Reporting/templates/displays/timing.html b/src/lib/Bcfg2/Reporting/templates/displays/timing.html index ff775ded5..8ac5e49bb 100644 --- a/src/lib/Bcfg2/Reporting/templates/displays/timing.html +++ b/src/lib/Bcfg2/Reporting/templates/displays/timing.html @@ -1,5 +1,9 @@ {% extends "base-timeview.html" %} {% load bcfg2_tags %} +{% comment %} +This is needed for Django versions less than 1.5 +{% endcomment %} +{% load url from future %} {% block title %}Bcfg2 - Performance Metrics{% endblock %} {% block pagebanner %}Performance Metrics{% endblock %} @@ -12,7 +16,7 @@ <div class='client_list_box'> {% if metrics %} <table cellpadding="3"> - <tr id='table_list_header' class='listview'> + <tr id='table_list_header' class='listview'> <td>Name</td> <td>Parse</td> <td>Probe</td> @@ -21,15 +25,15 @@ <td>Config</td> <td>Total</td> </tr> - {% for metric in metrics|dictsort:"name" %} + {% for metric in metrics|dictsort:"name" %} <tr class='{% cycle listview,listview_alt %}'> <td><a style='font-size: 100%' - href="{% url reports_client_detail hostname=metric.name %}">{{ metric.name }}</a></td> + href='{% url "reports_client_detail" hostname=metric.name %}'>{{ metric.name }}</a></td> {% for mitem in metric|build_metric_list %} <td>{{ mitem }}</td> {% endfor %} - </tr> - {% endfor %} + </tr> + {% endfor %} </table> {% else %} <p>No metric data available</p> |