aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-05 18:40:14 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-05 18:40:14 +0200
commit042f41a8750de8c0d2ecf30d147a62f03f758e3e (patch)
tree0566bb2bba240cc6cb183f1e1bf44782441ae974 /server/src/routes/ui
parentdcc3b7a9f3c29df31907af1280b9000ac344458c (diff)
downloadjellything-042f41a8750de8c0d2ecf30d147a62f03f758e3e.tar
jellything-042f41a8750de8c0d2ecf30d147a62f03f758e3e.tar.bz2
jellything-042f41a8750de8c0d2ecf30d147a62f03f758e3e.tar.zst
poll many fututes with FuturesUnordered
Diffstat (limited to 'server/src/routes/ui')
-rw-r--r--server/src/routes/ui/node.rs8
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" }}