From f62c7f2a8cc143454779dc99334ca9fc80ddabd5 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 29 Apr 2025 11:10:21 +0200 Subject: still just moving code around --- ui/src/stats.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ui/src/stats.rs') 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) }}} }} } } -- cgit v1.2.3-70-g09d2