60e2040284
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
1.4 KiB
HTML
29 lines
1.4 KiB
HTML
<div style="background:#0f0f1e;border:1px solid #2a2a4a;border-radius:6px;padding:1rem;">
|
|
<div style="display:flex;align-items:center;gap:1rem;margin-bottom:0.75rem;">
|
|
<span style="color:#a0a000;font-weight:bold;">RUNNING</span>
|
|
<span style="color:#a0a0c0;font-size:0.9rem;">{{ run.playbook_path }}</span>
|
|
<a href="/ansible/runs/{{ run.id }}" style="color:#6060c0;font-size:0.82rem;margin-left:auto;">Full view →</a>
|
|
</div>
|
|
<pre id="sse-output-{{ run.id }}"
|
|
style="background:#080810;padding:0.75rem;border-radius:4px;font-family:monospace;font-size:0.78rem;color:#a0c0a0;max-height:400px;overflow-y:auto;white-space:pre-wrap;margin:0 0 0.5rem 0;">
|
|
</pre>
|
|
<div id="sse-status-{{ run.id }}" style="font-size:0.85rem;color:#606080;">
|
|
Streaming output…
|
|
</div>
|
|
<script>
|
|
(function() {
|
|
var es = new EventSource('/ansible/runs/{{ run.id }}/stream');
|
|
var pre = document.getElementById('sse-output-{{ run.id }}');
|
|
var status = document.getElementById('sse-status-{{ run.id }}');
|
|
es.addEventListener('output', function(e) {
|
|
pre.textContent += e.data + '\n';
|
|
pre.scrollTop = pre.scrollHeight;
|
|
});
|
|
es.addEventListener('done', function(e) {
|
|
es.close();
|
|
status.textContent = 'Finished: ' + e.data;
|
|
});
|
|
})();
|
|
</script>
|
|
</div>
|