From 630559d69f4e6adba776186bcebea49a40386cc7 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 18 May 2025 17:06:15 +0200 Subject: downloader script and status reporting works --- src/style.css | 5 +++++ src/webui.rs | 3 +++ 2 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/style.css b/src/style.css index 5e1ed0b..8ca6be1 100644 --- a/src/style.css +++ b/src/style.css @@ -21,6 +21,11 @@ height: 72px; float: left; } +.task .status { + text-overflow: ellipsis; + white-space: wrap; + overflow: hidden; +} .task.queue { border-color: #6e6eff; } diff --git a/src/webui.rs b/src/webui.rs index 17eb5e0..f2685d0 100644 --- a/src/webui.rs +++ b/src/webui.rs @@ -77,6 +77,9 @@ markup::define!( span.subtitle { @s } br; } span.key { @key } + @if let Some(s) = data.get("status").and_then(Value::as_str) { + pre.status { @s } + } } } Worker<'a>(id: u64, w: &'a crate::Worker) { -- cgit v1.2.3-70-g09d2