diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2014-12-19 14:49:54 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2014-12-19 14:49:54 +0100 |
commit | 20f1bcae36b532e632e58c48beafcd19dc40f4ed (patch) | |
tree | edc2fd0b9e7845fd20ba338a375dd1e8e82ec41c | |
parent | 764a35ac2ee4a578ed9b57bd3eb51d8251499822 (diff) |
Show boot description only on fail.
Change-Id: I56b23500a81c70cf576992772ca15728d3a58a3c
-rw-r--r-- | app/dashboard/static/js/linaro-boots-id-1.1.7.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/dashboard/static/js/linaro-boots-id-1.1.7.js b/app/dashboard/static/js/linaro-boots-id-1.1.7.js index fbbef0a..8810375 100644 --- a/app/dashboard/static/js/linaro-boots-id-1.1.7.js +++ b/app/dashboard/static/js/linaro-boots-id-1.1.7.js @@ -296,6 +296,7 @@ function populatePage(data) { createdOn = null, bootLog, bootLogHtml, + status, nonAvail = '<span rel="tooltip" data-toggle="tooltip"' + 'title="Not available"><i class="fa fa-ban"></i>' + '</span>'; @@ -313,6 +314,7 @@ function populatePage(data) { bootLog = localData.boot_log; bootLogHtml = localData.boot_log_html; createdOn = new Date(localData.created_on.$date); + status = localData.status; $('#dd-date').empty().append(createdOn.getCustomISODate()); @@ -435,7 +437,7 @@ function populatePage(data) { $('#dd-board-boot-log').empty().append(nonAvail); } - switch (localData.status) { + switch (status) { case 'PASS': displ = '<span rel="tooltip" data-toggle="tooltip"' + 'title="Boot completed"><span class="label ' + @@ -461,7 +463,7 @@ function populatePage(data) { break; } - if (localData.boot_result_description !== null) { + if (localData.boot_result_description !== null && status !== 'PASS') { displ += ' <small>' + localData.boot_result_description + '</small>'; } |