diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-06 10:46:34 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-06 10:46:34 +0200 |
commit | e32800774b78bb279f8d92a88fd1a59d1a2e7482 (patch) | |
tree | 7f09e8574e8d30cea67b62888669b68afb5c4bb2 | |
parent | 8fb3cdad229084973cc111e6968d26c0b9c0830b (diff) | |
download | jellything-e32800774b78bb279f8d92a88fd1a59d1a2e7482.tar jellything-e32800774b78bb279f8d92a88fd1a59d1a2e7482.tar.bz2 jellything-e32800774b78bb279f8d92a88fd1a59d1a2e7482.tar.zst |
bring back dirup button
-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() { |