Skip to content

Commit

Permalink
feat(viewer): Highlight manually submitted entries different way
Browse files Browse the repository at this point in the history
We need to spot in viewer manually submitter entries somehow.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Nov 12, 2024
1 parent 61e6109 commit d467990
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions api/templates/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
.nodesearch tr:hover {background-color: #ddd;}
.nodesearch tr.fail {background-color: #ffcccc}
.nodesearch tr.null {background-color: #ffffcc}
.nodesearch tr.jobfilter {border: 1px dashed red;}

.nodesearch th {
background-color: #4CAF50;
Expand Down Expand Up @@ -398,15 +399,24 @@
// data
for (var i = 0; i < data.items.length; i++) {
node = data.items[i];
trclass = "";
// if fail, then add class fail
if (node.result == "fail") {
nodeinfohtml += "<tr class=\"fail\">";
trclass = "fail";
} else if (node.result == null && node.state != "running") {
// null might be because job is still running, but if it is not - it is failure
nodeinfohtml += "<tr class=\"null\">";
trclass = "null";
}
// if node.jobfilter is set and not null, then add class jobfilter
if ("jobfilter" in node && node.jobfilter != null) {
trclass += " jobfilter";
}
if (trclass != "") {
nodeinfohtml += "<tr class=\"" + trclass + "\">";
} else {
nodeinfohtml += "<tr>";
}

nodeinfohtml += "<td><a href=\"?node_id=" + node.id + "\">" + node.id + "</a>&nbsp;";

// add also arrow - direct link to search children objects of this node
Expand Down

0 comments on commit d467990

Please sign in to comment.