From 3da4609d7d03e004ed81e832d61049f0f977b675 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 5 Aug 2023 23:40:55 +0200 Subject: all ratings --- server/src/routes/ui/node.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server/src') diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index abdd299..5e69050 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -108,12 +108,14 @@ markup::define! { Rating::YoutubeLikes(n) => { @format_count(*n) " Likes" } Rating::YoutubeViews(n) => { @format_count(*n) " Views" } Rating::YoutubeFollowers(n) => { @format_count(*n) " Subscribers" } - _ => { "Unknown Rating" } + Rating::RottenTomatoes(n) => { @n " Tomatoes" } + Rating::Metacritic(n) => { "Metacritic Score: " @n } + Rating::Imdb(n) => { "IMDb Rating: " @n } } } } } h3 { @node.tagline } - p { @node.description } + p { @if matches!(node.kind, NodeKind::Video | NodeKind::Channel) { pre { @node.description } } else { @node.description } } } @match node.kind { NodeKind::Collection | NodeKind::Channel => { -- cgit v1.2.3-70-g09d2