From dc9f4a30a47cdce1e0070c18398351ea6c307305 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 6 Nov 2014 14:01:04 -0500 Subject: Add visual cues to configuration panels Make it easier to recognize which plugins are enabled and which are disabled. Also make it easier to recognize when a plugin has just changed state, by flashing its row (help also realize it may have moved up/down) Based on concept work by Petr Vobornik Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- templates/admin/plugins.html | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'templates/admin/plugins.html') diff --git a/templates/admin/plugins.html b/templates/admin/plugins.html index 7ef50a0..54462b7 100644 --- a/templates/admin/plugins.html +++ b/templates/admin/plugins.html @@ -15,21 +15,27 @@ - {% for p in enabled %} - {% endfor %} {% for p in available if not p in enabled %} - {% endfor %} - -
-
+ {% set highlight = "hl-enabled" %} + {% if p in changed %} + {% if changed[p] == 'enabled' %} + {% set highlight = "hl-enabled-new" %} + {% elif changed[p] == 'reordered' %} + {% set highlight = "hl-enabled-flash" %} + {% endif %} + {% endif %} +
- {{ p }} +

{{ p }}

{%- if available[p].get_config_obj() %} - Configure +

Configure

{% endif %}
@@ -73,12 +79,16 @@ {%- endif %}
-
-
+ {% set highlight = "hl-disabled" %} + {% if p in changed %} + {% if changed[p] == 'disabled' %} + {% set highlight = "hl-disabled-new" %} + {% endif %} + {% endif %} +
{{ p }}
@@ -97,12 +107,7 @@
-
-
- {% endif %} {% endblock %} -- cgit