diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-22 09:58:15 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-22 09:58:15 +0200 |
commit | c0ca00cdccc507e7875cc5941cb643f30720015a (patch) | |
tree | 6ae8bf84173321cc8753a0c4a6066c81aa466fbf /server/src/routes/ui/stats.rs | |
parent | 432b8e50ef18006f56da5f0311e21842172f4c7b (diff) | |
download | jellything-c0ca00cdccc507e7875cc5941cb643f30720015a.tar jellything-c0ca00cdccc507e7875cc5941cb643f30720015a.tar.bz2 jellything-c0ca00cdccc507e7875cc5941cb643f30720015a.tar.zst |
tr stats
Diffstat (limited to 'server/src/routes/ui/stats.rs')
-rw-r--r-- | server/src/routes/ui/stats.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/routes/ui/stats.rs b/server/src/routes/ui/stats.rs index b0e0b27..6a3d1d2 100644 --- a/server/src/routes/ui/stats.rs +++ b/server/src/routes/ui/stats.rs @@ -16,7 +16,8 @@ use crate::{ ui::{ layout::trs, node::{ - format_duration, format_duration_long, format_size, rocket_uri_macro_r_library_node, + format_duration, format_duration_long, format_kind, format_size, + rocket_uri_macro_r_library_node, }, }, }, @@ -114,7 +115,7 @@ pub fn r_stats( th { @trs(&lang, "stats.by_kind.max_runtime") } } @for (k,b) in &kinds { tr { - td { @format!("{k:?}") } + td { @format_kind(*k, lang) } td { @b.count } td { @format_size(b.size) } td { @format_duration(b.runtime) } |