aboutsummaryrefslogtreecommitdiff
path: root/ui/src/node_page.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/node_page.rs')
-rw-r--r--ui/src/node_page.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/src/node_page.rs b/ui/src/node_page.rs
index e7e7b1d..a72eb9a 100644
--- a/ui/src/node_page.rs
+++ b/ui/src/node_page.rs
@@ -13,12 +13,12 @@ use crate::{
props::Props,
};
use jellycommon::{
- Chapter, CreditCategory, IdentifierType, Node, NodeKind,
+ Chapter, CreditCategory, IdentifierType, Node, NodeKind, PictureSlot,
api::NodeFilterSort,
routes::{
- u_node_slug, u_node_slug_backdrop, u_node_slug_person_asset, u_node_slug_player,
- u_node_slug_player_time, u_node_slug_poster, u_node_slug_thumbnail,
- u_node_slug_update_rating, u_node_slug_watched,
+ u_node_image, u_node_slug, u_node_slug_person_asset, u_node_slug_player,
+ u_node_slug_player_time, u_node_slug_thumbnail, u_node_slug_update_rating,
+ u_node_slug_watched,
},
user::{ApiWatchedState, NodeUserData, WatchedState},
};
@@ -52,12 +52,12 @@ markup::define! {
player: bool,
) {
@if !matches!(node.kind, NodeKind::Collection) && !player {
- img.backdrop[src=u_node_slug_backdrop(&node.slug, 2048), loading="lazy"];
+ img.backdrop[src=u_node_image(&node.slug, PictureSlot::Backdrop, 2048), loading="lazy"];
}
.page.node {
@if !matches!(node.kind, NodeKind::Collection) && !player {
@let cls = format!("bigposter {}", aspect_class(node.kind));
- div[class=cls] { img[src=u_node_slug_poster(&node.slug, 2048), loading="lazy"]; }
+ div[class=cls] { img[src=u_node_image(&node.slug, PictureSlot::Cover, 2048), loading="lazy"]; }
}
.title {
h1 { @node.title }