diff --git a/app/templates/admin/list_items.html b/app/templates/admin/list_items.html index b4391d6..e8d487e 100644 --- a/app/templates/admin/list_items.html +++ b/app/templates/admin/list_items.html @@ -29,7 +29,15 @@ {% for deploy in deployments %} - {% if deploy.enabled == False %}{% else %}{% endif %} + {% if deploy.enabled == False %} + + {% else %} + {% if deploy.warning == True %} + + {% else %} + + {% endif %} + {% endif %} {{ deploy.owner.email }} {{ deploy.machine_id }} {{ deploy.machine_alias }} @@ -63,7 +71,15 @@ {% for service in services %} - {% if service.enabled == False %}{% else %}{% endif %} + {% if service.enabled == False %} + + {% else %} + {% if service.warning == True %} + + {% else %} + + {% endif %} + {% endif %} {{ service.owner.email }} {{ service.category }} {{ service.description }} @@ -94,7 +110,15 @@ {% for domain in domains %} - {% if domain.enabled == False %}{% else %}{% endif %} + {% if domain.enabled == False %} + + {% else %} + {% if domain.warning == True %} + + {% else %} + + {% endif %} + {% endif %} {{ domain.owner.email }} {{ domain.fqdn }} {{ domain.date_expire }} diff --git a/app/templates/main/dashboard.html b/app/templates/main/dashboard.html index 7e584ba..88a0218 100644 --- a/app/templates/main/dashboard.html +++ b/app/templates/main/dashboard.html @@ -138,6 +138,7 @@ addEventListener("DOMContentLoaded", function() { HDD Network Control + Remote Time Left @@ -151,13 +152,14 @@ addEventListener("DOMContentLoaded", function() { {{ deploy.machine_hdd }} GB {% for addr in deploy.machine_addresses %} {{ addr.ip }}
{% endfor %} + {% if deploy.warning == True %} - + {% else %} {{ deploy.daysleft }} day(s) {% endif %} @@ -209,15 +211,23 @@ addEventListener("DOMContentLoaded", function() { {% if service.enabled == False %} {% else %} - + {% if service.warning == True %} + + {% else %} + + {% endif %} {% endif %} {{ service.category }} {{ service.description }} {{ moment(service.date_last_charge).format('lll') }} ({{ moment(service.date_last_charge).fromNow() }}) - {% if service.warning == True or service.enabled == True %} + {% if service.enabled == False %} {% else %} + {% if service.warning == True %} + + {% else %} {{ service.daysleft }} day(s) + {% endif %} {% endif %} {% endfor %} @@ -248,14 +258,14 @@ addEventListener("DOMContentLoaded", function() { {{ domain.fqdn }} {{ domain.date_expire }} - {% if domain.enabled == True %} + {% if domain.enabled == False %} + EXPIRED + {% else %} {% if domain.warning == True %} - + {% else %} {{ domain.daysleft }} day(s) {% endif %} - {% else %} - EXPIRED {% endif %}