aboutsummaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/routes/ui/node.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs
index e14a2af..cfc633b 100644
--- a/server/src/routes/ui/node.rs
+++ b/server/src/routes/ui/node.rs
@@ -122,11 +122,13 @@ markup::define! {
p { @for line in description.lines() { @line br; } }
}
}
- @if let NodeKind::Collection = node.kind {
- @if let Some(parent) = &node.parent {
- a.dirup[href=uri!(r_library_node(parent))] { "Go up" }
- @NodeFilterSortForm { f: filter }
+ @if matches!(node.kind, NodeKind::Collection | NodeKind::Channel) {
+ @if matches!(node.kind, NodeKind::Collection) {
+ @if let Some(parent) = &node.parent {
+ a.dirup[href=uri!(r_library_node(parent))] { "Go up" }
+ }
}
+ @NodeFilterSortForm { f: filter }
}
@match node.kind {
NodeKind::Collection | NodeKind::Channel => {