diff options
| author | tpart <tpart120@proton.me> | 2023-12-22 13:33:36 +0100 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2023-12-22 13:33:36 +0100 |
| commit | d61b0a1b9c20fbcf444d09ceb787cd40a25911d3 (patch) | |
| tree | ce783cf437fa2aab0770e9d86860f41e4409bdbf | |
| parent | b898f0ec5d384eeec9ac89066472bbacc5d9a123 (diff) | |
| download | jellything-d61b0a1b9c20fbcf444d09ceb787cd40a25911d3.tar jellything-d61b0a1b9c20fbcf444d09ceb787cd40a25911d3.tar.bz2 jellything-d61b0a1b9c20fbcf444d09ceb787cd40a25911d3.tar.zst | |
Remove go up button and fix back button icon
| -rw-r--r-- | server/src/routes/ui/node.rs | 5 | ||||
| -rw-r--r-- | web/script/backbutton.ts | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index bcb7362..7f80ea2 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -153,11 +153,6 @@ markup::define! { } } @if matches!(node.kind.unwrap_or_default(), NodeKind::Collection | NodeKind::Channel) { - @if matches!(node.kind.unwrap_or_default(), NodeKind::Collection) { - @if let Some(parent) = &node.path.last().cloned() { - a.dirup[href=uri!(r_library_node(parent))] { "Go up" } - } - } @NodeFilterSortForm { f: filter } } @match node.kind.unwrap_or_default() { diff --git a/web/script/backbutton.ts b/web/script/backbutton.ts index 3b11c2a..c1da03a 100644 --- a/web/script/backbutton.ts +++ b/web/script/backbutton.ts @@ -7,7 +7,7 @@ import { e } from "./jshelper/mod.ts"; globalThis.addEventListener("DOMContentLoaded", () => { document.getElementsByTagName("nav").item(0)?.prepend( - e("a", "Back", { id:"back", onclick() { history.back() } }) + e("a", "Back", { class: "back", onclick() { history.back() } }) ) }) |