From 26149baa666e018b773b55da8eb82874e3650d0d Mon Sep 17 00:00:00 2001 From: Patrik Dufresne Date: Wed, 21 Dec 2022 10:57:12 -0500 Subject: [PATCH] Fix loading of status graph --- rdiffweb/templates/status.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rdiffweb/templates/status.html b/rdiffweb/templates/status.html index f44cfa3b..bf3f3549 100644 --- a/rdiffweb/templates/status.html +++ b/rdiffweb/templates/status.html @@ -1,5 +1,5 @@ {% extends 'layout.html' %} -{% from 'include/chartkick.html' import line_chart %} +{% import 'include/chartkick.html' as chartkick with context %} {% set active_page='status' %} {% block title %} {% trans %}Status{% endtrans %} @@ -9,7 +9,7 @@ {% include 'message.html' %}

{% trans %}Backup Status{% endtrans %}

{% trans %}Number of backup per days{% endtrans %}

- {{ line_chart(backup_count) }} + {{ chartkick.line_chart(backup_count) }} {% for date, items in data.items()|sort(attribute='0',reverse=1) %}

{% trans %}Backup for{% endtrans %} ({{ items|length }})