REVAMP
This commit is contained in:
1 parent
566a8e5905
commit
cb61ad08c7
12 files changed
+145
-374
No files matched your search
+43
-9
@@ -5,7 +5,7 @@
|
||||
<!-- ======================= -->
|
||||
<!-- QUEUED -->
|
||||
<!-- ======================= -->
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-3">
|
||||
<h3>Queued</h3>
|
||||
<ul class="list-group">
|
||||
|
||||
@@ -18,7 +18,41 @@
|
||||
<% }) %>
|
||||
|
||||
<% if (queued.length === 0) { %>
|
||||
<li class="list-group-item">No pending downloads</li>
|
||||
<li class="list-group-item text-muted">No queued jobs</li>
|
||||
<% } %>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- ======================= -->
|
||||
<!-- PROCESSING -->
|
||||
<!-- ======================= -->
|
||||
<div class="col-md-3">
|
||||
<h3 style="color:#58a6ff">Processing</h3>
|
||||
<ul class="list-group">
|
||||
|
||||
<% processing.forEach(job => { %>
|
||||
<li class="list-group-item">
|
||||
<strong style="color:#58a6ff"><%= job.filename %></strong>
|
||||
<span class="spinner-border spinner-border-sm ms-2" style="color:#58a6ff"></span>
|
||||
<br>
|
||||
<small><%= job.url %></small><br>
|
||||
<small>Started: <%= new Date(job.created_at).toLocaleString() %></small>
|
||||
|
||||
<% if (job.output_log) { %>
|
||||
<details class="mt-2">
|
||||
<summary class="text-light">Live Log</summary>
|
||||
<pre style="background:#001122; color:#9cf; padding:10px; border-radius:5px; white-space:pre-wrap;">
|
||||
<%= job.output_log %>
|
||||
</pre>
|
||||
</details>
|
||||
<% } %>
|
||||
|
||||
</li>
|
||||
<% }) %>
|
||||
|
||||
<% if (processing.length === 0) { %>
|
||||
<li class="list-group-item text-muted">Nothing processing</li>
|
||||
<% } %>
|
||||
|
||||
</ul>
|
||||
@@ -27,7 +61,7 @@
|
||||
<!-- ======================= -->
|
||||
<!-- DONE -->
|
||||
<!-- ======================= -->
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-3">
|
||||
<h3 class="text-success">Done</h3>
|
||||
<ul class="list-group">
|
||||
|
||||
@@ -49,7 +83,7 @@
|
||||
<% }) %>
|
||||
|
||||
<% if (finished.length === 0) { %>
|
||||
<li class="list-group-item">No completed downloads</li>
|
||||
<li class="list-group-item text-muted">No completed jobs</li>
|
||||
<% } %>
|
||||
|
||||
</ul>
|
||||
@@ -58,11 +92,11 @@
|
||||
<!-- ======================= -->
|
||||
<!-- FAILED -->
|
||||
<!-- ======================= -->
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-3">
|
||||
<h3 class="text-danger">Failed</h3>
|
||||
<ul class="list-group">
|
||||
|
||||
<% failed && failed.forEach(job => { %>
|
||||
<% failed.forEach(job => { %>
|
||||
<li class="list-group-item">
|
||||
<strong class="text-danger"><%= job.filename %></strong><br>
|
||||
<small><%= new Date(job.failed_at).toLocaleString() %></small><br>
|
||||
@@ -71,7 +105,7 @@
|
||||
<details class="mt-2">
|
||||
<summary class="text-danger">Show Error Log</summary>
|
||||
<pre style="background:#330000; color:#ffb3b3; padding:10px; border-radius:5px; white-space:pre-wrap;">
|
||||
<%= job.output_log %>
|
||||
<%= job.output_log %>
|
||||
</pre>
|
||||
</details>
|
||||
<% } %>
|
||||
@@ -79,8 +113,8 @@
|
||||
</li>
|
||||
<% }) %>
|
||||
|
||||
<% if (!failed || failed.length === 0) { %>
|
||||
<li class="list-group-item">No failed jobs</li>
|
||||
<% if (failed.length === 0) { %>
|
||||
<li class="list-group-item text-muted">No failed jobs</li>
|
||||
<% } %>
|
||||
|
||||
</ul>
|
||||
|
||||
Reference in new issue
Block a user