From d97635d32a41cb1134b249e31136d212bb7a69ba Mon Sep 17 00:00:00 2001 From: baldo Date: Wed, 8 Apr 2020 23:50:17 +0200 Subject: [PATCH] Admin: More distinctive coloring for different task states. --- admin/index.html | 10 +++++++++- admin/js/main.js | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/admin/index.html b/admin/index.html index 9c39a5f..73b8d7b 100644 --- a/admin/index.html +++ b/admin/index.html @@ -10,10 +10,18 @@ } .task-disabled { - color: lightcoral; + color: #eea236; text-decoration: line-through; } + .task-state-running { + color: darkblue; + } + + .task-state-failed { + color: red; + } + .task-description { max-width: 220px; } diff --git a/admin/js/main.js b/admin/js/main.js index 5d408fc..e4cee3d 100644 --- a/admin/js/main.js +++ b/admin/js/main.js @@ -381,7 +381,9 @@ angular.module('ffffngAdmin').config(function(NgAdminConfigurationProvider, Rest if (!task) { return; } - return 'task-' + field + ' ' + (task.values.enabled ? 'task-enabled' : 'task-disabled'); + return 'task-' + field + ' ' + + (task.values.enabled ? 'task-enabled' : 'task-disabled') + ' ' + + 'task-state-' + task.values.state; }; }