60 |
} |
} |
61 |
} |
} |
62 |
|
|
63 |
html += "<div style='font-size: 8px; '>" + entry.state + "</div>"; |
var viewlog = ""; |
64 |
|
if (entry.state == "STATE_RUNNING" || entry.state == "STATE_DONE" || entry.state == "STATE_ABORTED") { |
65 |
|
viewlog = "<span style='float: right'><a href='#' class='viewlog' taskid='" + entry.id+ "'>Log</a></span>"; |
66 |
|
} |
67 |
|
|
68 |
|
html += " <div style='font-size: 8px; '>" + entry.state + viewlog + "</div>"; |
69 |
|
|
70 |
html += " </div>"; //panel-body |
html += " </div>"; //panel-body |
71 |
html += "</div>"; //panel |
html += "</div>"; //panel |
94 |
|
|
95 |
$(document).ready( function() { |
$(document).ready( function() { |
96 |
loadTasks(); |
loadTasks(); |
97 |
setInterval(loadTasks, 2500); |
setInterval(loadTasks, 5000); |
98 |
|
|
99 |
|
|
100 |
|
$(document).on('click', '.viewlog', function(event) { // Bind future elements |
101 |
|
var taskid = $(this).attr('taskid'); |
102 |
|
$("#logview").load('rest/tasks/log/' + taskid); |
103 |
|
|
104 |
|
}); |
105 |
|
|
106 |
$("#file").fileinput({ |
$("#file").fileinput({ |
107 |
//'showUpload':false, |
//'showUpload':false, |
168 |
</div> |
</div> |
169 |
</div> |
</div> |
170 |
|
|
171 |
<div class="col-sm-6" id="center" > |
<div class="col-sm-6" id="center"> |
172 |
b |
<pre id="logview"> |
173 |
|
</pre> |
174 |
</div> |
</div> |
175 |
|
|
176 |
<div class="col-sm-3" id="rightCol" > |
<div class="col-sm-3" id="rightCol" > |