From dc7964efd7b83bd557a642135604948e2fe9c5cd Mon Sep 17 00:00:00 2001 From: Adam Shimali Date: Tue, 5 Apr 2016 14:05:25 +0100 Subject: [PATCH] Fix service id bug in template. Use current_service instead --- app/main/views/dashboard.py | 1 - app/templates/views/dashboard/template-statistics.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/main/views/dashboard.py b/app/main/views/dashboard.py index 7f6f4cb45..14026ed16 100644 --- a/app/main/views/dashboard.py +++ b/app/main/views/dashboard.py @@ -45,7 +45,6 @@ def service_dashboard(service_id): spent_this_month='0.00', statistics=add_rates_to(statistics), templates=templates, - service_id=str(service_id), template_statistics=template_statistics) diff --git a/app/templates/views/dashboard/template-statistics.html b/app/templates/views/dashboard/template-statistics.html index 7b6e0d3b7..428269c96 100644 --- a/app/templates/views/dashboard/template-statistics.html +++ b/app/templates/views/dashboard/template-statistics.html @@ -6,7 +6,7 @@ field_headings=['Template', 'Type', right_aligned_field_heading('Usage')] ) %} {% call field() %} - + {{ item.template.name }} {% endcall %}