diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-05 23:40:55 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-05 23:40:55 +0200 |
commit | 3da4609d7d03e004ed81e832d61049f0f977b675 (patch) | |
tree | cf16d513abbdf8b5ac329e70f96f2e201880cbab /server/src/routes/ui/node.rs | |
parent | cc6d2ba0174da28533f51fe3915872110c242b1e (diff) | |
download | jellything-3da4609d7d03e004ed81e832d61049f0f977b675.tar jellything-3da4609d7d03e004ed81e832d61049f0f977b675.tar.bz2 jellything-3da4609d7d03e004ed81e832d61049f0f977b675.tar.zst |
all ratings
Diffstat (limited to 'server/src/routes/ui/node.rs')
-rw-r--r-- | server/src/routes/ui/node.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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 => { |