aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-12-19 15:03:18 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-12-19 15:03:18 +0100
commit61d12d69ce2f8cb6f82e7569570b054fed8d9327 (patch)
treed133915a7b1f75fefc807439c5a04d4a68e98c35
parent0c276675fb06012f61ef2fb2164244283addea67 (diff)
Move date field, add retries.
Change-Id: I46db330a432010a827de57eb58fa6a024b1d30d0
-rw-r--r--app/dashboard/static/js/linaro-boots-id-1.1.8.js7
-rw-r--r--app/dashboard/templates/boots-id.html8
2 files changed, 13 insertions, 2 deletions
diff --git a/app/dashboard/static/js/linaro-boots-id-1.1.8.js b/app/dashboard/static/js/linaro-boots-id-1.1.8.js
index 8810375..6ebe9bb 100644
--- a/app/dashboard/static/js/linaro-boots-id-1.1.8.js
+++ b/app/dashboard/static/js/linaro-boots-id-1.1.8.js
@@ -297,6 +297,7 @@ function populatePage(data) {
bootLog,
bootLogHtml,
status,
+ retries,
nonAvail = '<span rel="tooltip" data-toggle="tooltip"' +
'title="Not available"><i class="fa fa-ban"></i>' +
'</span>';
@@ -315,9 +316,15 @@ function populatePage(data) {
bootLogHtml = localData.boot_log_html;
createdOn = new Date(localData.created_on.$date);
status = localData.status;
+ retries = localData.retries;
$('#dd-date').empty().append(createdOn.getCustomISODate());
+ $('#dd-retries').empty().append(
+ '<span rel="tooltip" data-toggle="tooltip"' +
+ 'title="How many times the boot has been attempted">' +
+ retries + '</span>');
+
$('#dd-lab-name').empty().append(
'<span rel="tooltip" data-toggle="tooltip"' +
'title="All boot reports for lab&nbsp;&#171;' + localLabName +
diff --git a/app/dashboard/templates/boots-id.html b/app/dashboard/templates/boots-id.html
index 0b8b6c0..fcdb627 100644
--- a/app/dashboard/templates/boots-id.html
+++ b/app/dashboard/templates/boots-id.html
@@ -30,6 +30,10 @@
<dd id="dd-board-defconfig" class="loading-content">
<i class="fa fa-cog fa-spin"></i>&nbsp;loading&hellip;
</dd>
+ <dt>Date</dt>
+ <dd id="dd-date" class="loading-content">
+ <i class="fa fa-cog fa-spin"></i>&nbsp;loading&hellip;
+ </dd>
</dl>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
@@ -88,8 +92,8 @@
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<dl class="dl-horizontal" id="dl-left-other">
- <dt>Date</dt>
- <dd id="dd-date" class="loading-content">
+ <dt>Boot retries</dt>
+ <dd id="dd-retries" class="loading-content">
<i class="fa fa-cog fa-spin"></i>&nbsp;loading&hellip;
</dd>
</dl>