Skip to content

Commit

Permalink
Merge pull request #510 from guidow/subjob_state_icon_fix
Browse files Browse the repository at this point in the history
Set state icon on subjob row instead of table
  • Loading branch information
opalmer committed Jul 14, 2015
2 parents de41dd3 + a177d3b commit d0b5ce0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyfarm/master/static/js/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ $(document).ready(function() {
"</tr>");
subjob_table.append(subjob_row);
if(s["state"] == "queued") {
subjob_table.find("span.glyphicon").addClass("glyphicon-time");
subjob_row.find("span.glyphicon").addClass("glyphicon-time");
}
if(s["state"] == "running") {
subjob_table.find("span.glyphicon").addClass("glyphicon-play").css("color", "#337AB7");
subjob_row.find("span.glyphicon").addClass("glyphicon-play").css("color", "#337AB7");
}
if(s["state"] == "failed") {
subjob_table.find("span.glyphicon").addClass("glyphicon-remove").css("color", "#D9534F");
subjob_row.find("span.glyphicon").addClass("glyphicon-remove").css("color", "#D9534F");
}
if(s["state"] == "done") {
subjob_table.find("span.glyphicon").addClass("glyphicon-ok").css("color", "#5CB85C");
subjob_row.find("span.glyphicon").addClass("glyphicon-ok").css("color", "#5CB85C");
}
});
}
Expand Down

0 comments on commit d0b5ce0

Please sign in to comment.