diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-05 18:40:14 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-05 18:40:14 +0200 |
commit | 042f41a8750de8c0d2ecf30d147a62f03f758e3e (patch) | |
tree | 0566bb2bba240cc6cb183f1e1bf44782441ae974 /server/src/routes/ui/node.rs | |
parent | dcc3b7a9f3c29df31907af1280b9000ac344458c (diff) | |
download | jellything-042f41a8750de8c0d2ecf30d147a62f03f758e3e.tar jellything-042f41a8750de8c0d2ecf30d147a62f03f758e3e.tar.bz2 jellything-042f41a8750de8c0d2ecf30d147a62f03f758e3e.tar.zst |
poll many fututes with FuturesUnordered
Diffstat (limited to 'server/src/routes/ui/node.rs')
-rw-r--r-- | server/src/routes/ui/node.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index c87e56b..abdd299 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -86,9 +86,13 @@ markup::define! { } } NodePage<'a>(id: &'a str, node: &'a NodePublic, children: &'a Vec<(String, NodePublic)>) { - img.backdrop[src=uri!(r_item_assets(id, AssetRole::Backdrop))]; + @if !matches!(node.kind, NodeKind::Collection) { + img.backdrop[src=uri!(r_item_assets(id, AssetRole::Backdrop))]; + } div.page.item { - div.banner { img[src=uri!(r_item_assets(id, AssetRole::Poster))]; } + @if !matches!(node.kind, NodeKind::Collection) { + div.banner { img[src=uri!(r_item_assets(id, AssetRole::Poster))]; } + } div.title { h1 { @node.title } @if node.media.is_some() { a.play[href=&player_uri(id)] { "Watch now" }} |