From 6404997b939c23d50bc78fe1ee8101ee9350054f Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 15 Feb 2017 14:01:52 +0000 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20right=20align=20template=20stat?= =?UTF-8?q?s=20for=20one=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don’t show the graph if a user has only used one template. --- .../views/dashboard/template-statistics.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/templates/views/dashboard/template-statistics.html b/app/templates/views/dashboard/template-statistics.html index 11b0a4c56..c94ec4e6b 100644 --- a/app/templates/views/dashboard/template-statistics.html +++ b/app/templates/views/dashboard/template-statistics.html @@ -24,8 +24,8 @@ {% endcall %} - {% call field(align='right') %} - {% if template_statistics|length > 1 %} + {% if template_statistics|length > 1 %} + {% call field(align='right') %} {{ big_number( @@ -34,14 +34,16 @@ ) }} - {% else %} + {% endcall %} + {% else %} + {% call field() %} {{ big_number( item.count, smallest=True ) }} - {% endif %} - {% endcall %} + {% endcall %} + {% endif %} {% endcall %}