diff options
Diffstat (limited to 'server/src/routes')
-rw-r--r-- | server/src/routes/ui/node.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index d9cc849..7b8548e 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -117,6 +117,11 @@ markup::define! { h3 { @node.tagline } p { @if matches!(node.kind, NodeKind::Video | NodeKind::Channel) { pre { @node.description } } else { @node.description } } } + @if let NodeKind::Collection = node.kind { + @if let Some(parent) = &node.parent { + a.dirup[href=uri!(r_library_node(parent))] { "Go up" } + } + } @match node.kind { NodeKind::Collection | NodeKind::Channel => { ul.children {@for (id, node) in children.iter() { |