diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-22 03:22:39 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-02-22 03:22:39 +0100 |
| commit | aa13fade6fcabf9122babac7ac812a433a81b627 (patch) | |
| tree | f284f4d1502e3c75d37508ee0e8219add6c095a6 /ui/src/components/props.rs | |
| parent | eb46c37ebf2453f334bac086dbf9e91837dd082b (diff) | |
| download | jellything-aa13fade6fcabf9122babac7ac812a433a81b627.tar jellything-aa13fade6fcabf9122babac7ac812a433a81b627.tar.bz2 jellything-aa13fade6fcabf9122babac7ac812a433a81b627.tar.zst | |
node highlight card + css cleanup
Diffstat (limited to 'ui/src/components/props.rs')
| -rw-r--r-- | ui/src/components/props.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/src/components/props.rs b/ui/src/components/props.rs index c11dca6..5fa9d3e 100644 --- a/ui/src/components/props.rs +++ b/ui/src/components/props.rs @@ -47,11 +47,11 @@ markup::define! { RTYP_YOUTUBE_LIKES => {p.likes{ @format_count(value as usize) " Likes" }} RTYP_YOUTUBE_VIEWS => {p{ @format_count(value as usize) " Views" }} RTYP_YOUTUBE_SUBSCRIBERS => {p{ @format_count(value as usize) " Subscribers" }} - RTYP_ROTTEN_TOMATOES => {p.rating{ "Rotten Tomatoes: " @value "%" }} + RTYP_ROTTEN_TOMATOES if *full => {p.rating{ "Rotten Tomatoes: " @value "%" }} RTYP_METACRITIC if *full => {p.rating{ "Metacritic: " @value "/100" }} RTYP_IMDB => {p.rating{ "IMDb " @value }} - RTYP_TMDB => {p.rating{ "TMDB " @format!("{:.01}", value) }} - RTYP_TRAKT => {p.rating{ "Trakt " @format!("{:.01}", value) }} + RTYP_TMDB if *full => {p.rating{ "TMDB " @format!("{:.01}", value) }} + RTYP_TRAKT if *full => {p.rating{ "Trakt " @format!("{:.01}", value) }} _ => {} } } |