aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-09-08 12:43:21 +0200
committermetamuffin <metamuffin@disroot.org>2023-09-08 12:43:21 +0200
commit3352d7d0031cbc5de1cd79f2a50ee3fdbb62003c (patch)
tree3a463cc37647a84a3b930f5573405148d0542c9b
parente5c627592ddbb464787d0e1c61e5091815d7679a (diff)
downloadjellything-3352d7d0031cbc5de1cd79f2a50ee3fdbb62003c.tar
jellything-3352d7d0031cbc5de1cd79f2a50ee3fdbb62003c.tar.bz2
jellything-3352d7d0031cbc5de1cd79f2a50ee3fdbb62003c.tar.zst
ui: show filter in channels
-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 => {