From 10c007f73946945427eb59d1150615142c233bd0 Mon Sep 17 00:00:00 2001 From: deflax Date: Tue, 11 Jul 2017 19:28:32 +0300 Subject: [PATCH] some error --- app/templates/main/dashboard.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/templates/main/dashboard.html b/app/templates/main/dashboard.html index b84386b..1679ec3 100644 --- a/app/templates/main/dashboard.html +++ b/app/templates/main/dashboard.html @@ -138,7 +138,6 @@ addEventListener("DOMContentLoaded", function() { HDD Network Control - Time Left @@ -215,8 +214,8 @@ addEventListener("DOMContentLoaded", function() { {{ service.category }} {{ service.description }} {{ moment(service.date_last_charge).format('lll') }} ({{ moment(service.date_last_charge).fromNow() }}) - {% if service.warning == True %} - + {% if service.warning == True % or service.enabled == True} + {% else %} {{ service.daysleft }} day(s) {% endif %} @@ -249,10 +248,14 @@ addEventListener("DOMContentLoaded", function() { {{ domain.fqdn }} {{ domain.date_expire }} - {% if domain.warning == True %} - + {% if domain.enabled == True %} + {% if domain.warning == True %} + + {% else %} + {{ domain.daysleft }} day(s) + {% endif %} {% else %} - {{ domain.daysleft }} day(s) + EXPIRED {% endif %}