Skip to content

Commit

Permalink
colouring log messages in the webapp check results tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
felipesanches committed Oct 27, 2016
1 parent 0c23353 commit 8f7449c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fontbakery-check-ttf.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def set_target(self, value):
def skip(self, msg):
self.summary["Skipped"] += 1
logging.info("SKIP: " + msg)
self.current_check["log_messages"].append(msg)
self.current_check["log_messages"].append("SKIP: " + msg)
self.current_check["result"] = "SKIP"

def ok(self, msg):
Expand Down
3 changes: 3 additions & 0 deletions webapp/app/static/js/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ define([
document.getElementById("results").innerHTML = xhr.response;
JQ("#tabs").tabs();
JQ('html, body').animate({scrollTop: $("#tabs").offset().top}, 1000);
JQ('ul li').filter(function() { return $(this).text().indexOf("ERROR:") === 0; }).css("color", "#C22");
JQ('ul li').filter(function() { return $(this).text().indexOf("Warning:") === 0; }).css("color", "#22C");
JQ('ul li').filter(function() { return $(this).text().indexOf("SKIP:") === 0; }).css("color", "#AA4");

console.info('Received:', xhr.responseType, xhr.response.byteLength, 'Bytes');
//blob = new Blob([xhr.response], {type: "application/zip"});
Expand Down

0 comments on commit 8f7449c

Please sign in to comment.