diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-29 11:10:21 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-29 11:10:21 +0200 |
commit | f62c7f2a8cc143454779dc99334ca9fc80ddabd5 (patch) | |
tree | f31dbb908715d2deb2860e2097fa13dd41d759d5 /ui/src/stats.rs | |
parent | 73d2d5eb01fceae9e0b1c58afb648822000c878a (diff) | |
download | jellything-f62c7f2a8cc143454779dc99334ca9fc80ddabd5.tar jellything-f62c7f2a8cc143454779dc99334ca9fc80ddabd5.tar.bz2 jellything-f62c7f2a8cc143454779dc99334ca9fc80ddabd5.tar.zst |
still just moving code around
Diffstat (limited to 'ui/src/stats.rs')
-rw-r--r-- | ui/src/stats.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/src/stats.rs b/ui/src/stats.rs index 3655245..c3e5a14 100644 --- a/ui/src/stats.rs +++ b/ui/src/stats.rs @@ -8,7 +8,10 @@ use crate::{ format::{format_duration, format_duration_long, format_kind, format_size}, locale::{Language, tr, trs}, }; -use jellycommon::api::{ApiStatsResponse, StatsBin}; +use jellycommon::{ + api::{ApiStatsResponse, StatsBin}, + routes::u_node_slug, +}; use markup::raw; markup::define! { @@ -46,8 +49,8 @@ markup::define! { td { @format_duration(b.runtime) } td { @format_size(b.average_size() as u64) } td { @format_duration(b.average_runtime()) } - td { @if b.max_size.0 > 0 { a[href=uri!(r_library_node(&b.max_size.1))]{ @format_size(b.max_size.0) }}} - td { @if b.max_runtime.0 > 0. { a[href=uri!(r_library_node(&b.max_runtime.1))]{ @format_duration(b.max_runtime.0) }}} + td { @if b.max_size.0 > 0 { a[href=u_node_slug(&b.max_size.1)]{ @format_size(b.max_size.0) }}} + td { @if b.max_runtime.0 > 0. { a[href=u_node_slug(&b.max_runtime.1)]{ @format_duration(b.max_runtime.0) }}} }} } } |