diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-18 03:41:05 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-18 03:41:05 +0100 |
| commit | b39e1a10c731fd0e61a566a0668abc33ae821b49 (patch) | |
| tree | 6e2e48b5e56a2cf4b4f966b6f2e014c446a242a1 /ui/src/components | |
| parent | 95606a9deed45ae285c2d4dee01de9d21a43b044 (diff) | |
| download | jellything-b39e1a10c731fd0e61a566a0668abc33ae821b49.tar jellything-b39e1a10c731fd0e61a566a0668abc33ae821b49.tar.bz2 jellything-b39e1a10c731fd0e61a566a0668abc33ae821b49.tar.zst | |
use fourcc as object tags (bad idea); store type info within objects
Diffstat (limited to 'ui/src/components')
| -rw-r--r-- | ui/src/components/node_page.rs | 2 | ||||
| -rw-r--r-- | ui/src/components/props.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/components/node_page.rs b/ui/src/components/node_page.rs index 921f65d..17e923c 100644 --- a/ui/src/components/node_page.rs +++ b/ui/src/components/node_page.rs @@ -119,7 +119,7 @@ markup::define! { table { @for (key, value) in idents.entries::<&str>() { tr { tr { - td { @tr(ri.lang, &format!("id.{}", TAGREG.name(key))) } + td { @tr(ri.lang, &format!("id.{key}")) } @if let Some(url) = external_id_url(key, value) { td { a[href=url] { pre { @value } } } } else { diff --git a/ui/src/components/props.rs b/ui/src/components/props.rs index fa078e7..8f7bfc3 100644 --- a/ui/src/components/props.rs +++ b/ui/src/components/props.rs @@ -46,7 +46,7 @@ markup::define! { @match TypedTag(kind, PhantomData) { RTYP_YOUTUBE_LIKES => {p.likes{ @format_count(value as usize) " Likes" }} RTYP_YOUTUBE_VIEWS => {p{ @format_count(value as usize) " Views" }} - RTYP_YOUTUBE_FOLLOWERS => {p{ @format_count(value as usize) " Subscribers" }} + RTYP_YOUTUBE_SUBSCRIBERS => {p{ @format_count(value as usize) " Subscribers" }} RTYP_ROTTEN_TOMATOES => {p.rating{ @value " Tomatoes" }} RTYP_METACRITIC if *full => {p{ "Metacritic Score: " @value }} RTYP_IMDB => {p.rating{ "IMDb " @value }} |