From 11240d444e20ebd35aaf32f99487162cb0626807 Mon Sep 17 00:00:00 2001 From: Misha Date: Fri, 4 Dec 2015 15:25:32 +0200 Subject: [PATCH] Added coloring for riskScore and priority(IssueLog) --- .../libreplan/web/logs/IssueLogCRUDController.java | 14 ++++++-------- .../src/main/webapp/common/css/libreplan_zk.css | 12 ++++++------ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/logs/IssueLogCRUDController.java b/libreplan-webapp/src/main/java/org/libreplan/web/logs/IssueLogCRUDController.java index de7b110ac..fc3365f08 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/logs/IssueLogCRUDController.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/logs/IssueLogCRUDController.java @@ -186,25 +186,23 @@ public class IssueLogCRUDController extends BaseCRUDController { appendDate(row, issueLog.getDateResolved()); appendLabel(row, issueLog.getNotes()); appendOperations(row, issueLog); - setPriorityColor(row, issueLog.getPriority()); + setPriorityCellColor(row, issueLog.getPriority()); } }; } - private void setPriorityColor(Row row, LowMediumHighEnum priority) { + private void setPriorityCellColor(Row row, LowMediumHighEnum priority) { + Cell cell = (Cell) row.getChildren().get(5); if (priority == LowMediumHighEnum.LOW) { - Cell cell = (Cell) row.getChildren().get(5); - cell.setClass("Issuelog-priority-color-green"); + cell.setClass("logs-priority-color-green"); } if (priority == LowMediumHighEnum.MEDIUM) { - Cell cell = (Cell) row.getChildren().get(5); - cell.setClass("Issuelog-priority-color-yellow"); + cell.setClass("logs-priority-color-yellow"); } if (priority == LowMediumHighEnum.HIGH) { - Cell cell = (Cell) row.getChildren().get(5); - cell.setClass("Issuelog-priority-color-red"); + cell.setClass("logs-priority-color-red"); } } diff --git a/libreplan-webapp/src/main/webapp/common/css/libreplan_zk.css b/libreplan-webapp/src/main/webapp/common/css/libreplan_zk.css index e2b53694f..4cb3681cb 100644 --- a/libreplan-webapp/src/main/webapp/common/css/libreplan_zk.css +++ b/libreplan-webapp/src/main/webapp/common/css/libreplan_zk.css @@ -1941,14 +1941,14 @@ select { text-decoration: none !important; } -.Issuelog-priority-color-red { - background: red !important; +.logs-priority-color-red { + background: #FF4000 !important; } -.Issuelog-priority-color-yellow { - background: yellow !important; +.logs-priority-color-yellow { + background: #FFA500 !important; } -.Issuelog-priority-color-green { - background: green !important; +.logs-priority-color-green { + background: #AAFFAA !important; }