Added coloring for riskScore and priority(IssueLog)

This commit is contained in:
Misha 2015-12-04 15:25:32 +02:00
parent 22671e7641
commit 11240d444e
2 changed files with 12 additions and 14 deletions

View file

@ -186,25 +186,23 @@ public class IssueLogCRUDController extends BaseCRUDController<IssueLog> {
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");
}
}

View file

@ -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;
}