From 861e8360cf55a35a9f8c6f0f83e848659986507d Mon Sep 17 00:00:00 2001 From: Leonidas Poulopoulos Date: Thu, 25 Apr 2013 17:59:58 +0300 Subject: [PATCH] Add badges to rule status --- ChangeLog | 11 +++++++++++ templates/overview/index.html | 6 +++--- templates/user_routes.html | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index afb7899..887aec9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,15 @@ =========== +0.9.7 RELEASE +Minor UI improvements (check Requirements) + +Requirements: + -south migration to include database changes if you are at + <=0.9.5 + +UI Improvements: + -Added badges in rule status + +=========== 0.9.6 RELEASE New Feature and minor UI improvements (check Requirements) diff --git a/templates/overview/index.html b/templates/overview/index.html index 41e262d..522c8e9 100644 --- a/templates/overview/index.html +++ b/templates/overview/index.html @@ -203,9 +203,9 @@ oTableI.fnDraw(); {{route.get_then|safe|escape}} - {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' or route.status == 'OUTOFSYNC'%} - {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' %}SUSPENDED{% else %}{% if route.status == 'OUTOFSYNC' %}ERROR{% else %}{{route.status}}{% endif %}{% endif %}{% else %}{{route.status}}{% endif %} - + {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' or route.status == 'OUTOFSYNC'%} + {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' %}DEACTIVATED{% else %}{% if route.status == 'OUTOFSYNC' %}ERROR{% else %}{{route.status}}{% endif %}{% endif %}{% else %}{% if route.status == 'ACTIVE' %}{{route.status}}{% else %}{% if route.status == 'PENDING' %}{{route.status}}{% else %}{{route.status}}{% endif %}{% endif %}{% endif %} + {% comment %}{{ route.response }}{% endcomment %} {{ route.applier }} diff --git a/templates/user_routes.html b/templates/user_routes.html index 5fd4911..984e513 100644 --- a/templates/user_routes.html +++ b/templates/user_routes.html @@ -272,7 +272,7 @@ function delete_route(route){ {{route.get_then|safe|escape}} {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' or route.status == 'OUTOFSYNC'%} - {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' %}DEACTIVATED{% else %}{% if route.status == 'OUTOFSYNC' %}ERROR{% else %}{{route.status}}{% endif %}{% endif %}{% else %}{{route.status}}{% endif %} + {% if route.status == 'EXPIRED' or route.status == 'ADMININACTIVE' or route.status == 'INACTIVE' %}DEACTIVATED{% else %}{% if route.status == 'OUTOFSYNC' %}ERROR{% else %}{{route.status}}{% endif %}{% endif %}{% else %}{% if route.status == 'ACTIVE' %}{{route.status}}{% else %}{% if route.status == 'PENDING' %}{{route.status}}{% else %}{{route.status}}{% endif %}{% endif %}{% endif %} {% comment %}{{ route.response }}{% endcomment %} -- 1.7.10.4