diff --git a/public/style.css b/public/style.css
index 8884044..e9a33a7 100644
--- a/public/style.css
+++ b/public/style.css
@@ -96,17 +96,6 @@ header h1 {
/* ===============================
BUTTONS
=============================== */
-
-.btn-danger {
- background-color: #8A190B; /* deeper red accent */
- border: none;
- color: white;
- transition: background 0.3s ease;
-}
-.btn-danger:hover {
- background-color: #A32012;
-}
-
button,
.btn {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
diff --git a/routes/index.js b/routes/index.js
index 8047a2f..0bc43d7 100644
--- a/routes/index.js
+++ b/routes/index.js
@@ -47,4 +47,14 @@ router.post("/clear-failed", async (req, res) => {
res.redirect("/status");
});
+router.post("/clear-done", async (req, res) => {
+ const db = await getDb();
+ await db
+ .collection("done")
+ .deleteMany({}) //delete all
+
+ // Redirect to status, controller fetches everything
+ res.redirect("/status");
+});
+
module.exports = router;
diff --git a/views/partials/header.ejs b/views/partials/header.ejs
index 1fafc58..0a226d9 100644
--- a/views/partials/header.ejs
+++ b/views/partials/header.ejs
@@ -17,8 +17,6 @@
-
-
@@ -26,9 +24,6 @@
diff --git a/views/status.ejs b/views/status.ejs
index 9f73024..d70ffa7 100644
--- a/views/status.ejs
+++ b/views/status.ejs
@@ -5,8 +5,10 @@
-
-
Queued
+
+
+
Queued
+
<% queued.forEach(job => { %>
-
@@ -24,21 +26,20 @@
-
-
Processing
+
+
+
Processing
+
-
<% processing.forEach(job => { %>
-
<%= job.filename %>
<%= job.url %>
Started: <%= new Date(job.created_at).toLocaleString() %>
-
<% if (job.fileSize) { %>
Downloaded: <%= job.fileSize %>
<% } %>
-
<% if (job.output_log) { %>
Live Log
@@ -49,30 +50,32 @@
<% } %>
<% }) %>
-
<% if (processing.length === 0) { %>
- Nothing processing
<% } %>
-
-
-
Done
+
+
+
Done
+
+
-
<% finished.forEach(job => { %>
-
<%= job.filename %>
<%= new Date(job.finished_at).toLocaleString() %>
-
<% if (job.fileSize) { %>
Size: <%= job.fileSize %>
<% } %>
-
<% if (job.output_log) { %>
Show Log
@@ -81,29 +84,31 @@
<% } %>
-
<% }) %>
-
<% if (finished.length === 0) { %>
- No completed jobs
<% } %>
-
-
-
Failed
+
+
+
Failed
+
+
-
<% failed.forEach(job => { %>
-
<%= job.filename %>
<%= new Date(job.failed_at).toLocaleString() %>
-
<% if (job.output_log) { %>
Show Error Log
@@ -112,14 +117,11 @@
<% } %>
-
<% }) %>
-
<% if (failed.length === 0) { %>
- No failed jobs
<% } %>
-