diff options
author | metamuffin <metamuffin@disroot.org> | 2023-06-12 23:08:50 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-06-12 23:08:50 +0200 |
commit | 161693f372ea01d945b111501c6c1af4182c283d (patch) | |
tree | fb1937816c2cf0d74342615c1a96db88700671a2 /server/src/routes/ui/node.rs | |
parent | 905ffe80fcd97b1b6b2c194181b2426b601d52d1 (diff) | |
download | jellything-161693f372ea01d945b111501c6c1af4182c283d.tar jellything-161693f372ea01d945b111501c6c1af4182c283d.tar.bz2 jellything-161693f372ea01d945b111501c6c1af4182c283d.tar.zst |
"go up" button
Diffstat (limited to 'server/src/routes/ui/node.rs')
-rw-r--r-- | server/src/routes/ui/node.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index d03173b..e6f0809 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -64,6 +64,9 @@ markup::define! { DirectoryPage(dir: Arc<Directory>) { div.page.dir { h1 { @dir.info.name } + @if let Some(parent) = dir.lib_path.parent() { + a.dirup[href=uri!(r_library_node(&parent))] { "Go up" } + } ul.directorylisting { @for el in &dir.children { li { @match el.deref().to_owned() { |