47 |
|
|
48 |
if (entry.state == "STATE_ABORTED") |
if (entry.state == "STATE_ABORTED") |
49 |
html += "<br><div style='color: red'>" + entry.errorMessage + "</div>"; |
html += "<br><div style='color: red'>" + entry.errorMessage + "</div>"; |
50 |
|
|
51 |
|
if (entry.state == "STATE_RUNNING") { |
52 |
|
if (entry.percentCompleted >= 0) { |
53 |
|
var percent = entry.percentCompleted.toFixed(2); |
54 |
|
html += "<div class='progress'>"; |
55 |
|
html += "<div class='progress-bar' role='progressbar' aria-valuenow='" + percent + "' aria-valuemin='0' aria-valuemax='100' style='width:" + percent + "%'> " ; |
56 |
|
html += percent + "%"; |
57 |
|
html += " </div>"; |
58 |
|
html += "</div>"; |
59 |
|
} |
60 |
|
} |
61 |
|
|
62 |
html += "<br/><div style='font-size: 8px; margin: 7px;'>" + entry.state + "</div>"; |
html += "<br/><div style='font-size: 8px; margin: 7px;'>" + entry.state + "</div>"; |
63 |
|
|