highlight current path in tree

This commit is contained in:
Bel LaPointe
2022-02-16 08:22:03 -07:00
parent a7c8a0d481
commit e025f3835a
3 changed files with 7 additions and 7 deletions

View File

@@ -275,8 +275,8 @@ func (server *Server) uiFilesHandler(w http.ResponseWriter, r *http.Request) err
"This": map[string]interface{}{
"Title": leaf.Title,
"Content": leaf.Content,
"ID": id,
"PID": id.Pop(),
"ID": id.String(),
"PID": id.Pop().String(),
"PTitle": parent.Title,
},
"Tree": string(branchesJSON),

View File

@@ -1,7 +1,4 @@
todo:
- convert hardcore to IDs are / so things can ignore this fact rather than partially [] and partially modified in frontend
- highlight current page
- search page tree is empty
- hide checkbox for tree
- delete button does nothing
- do not rewrite .md title vs. link cause hrefs to ./gobs.md wont work
@@ -17,6 +14,8 @@ todo:
- ui; last updated; 2022.02.01T12:34:56
- mark generated via meta so other files in the dir can be created, deleted, replaced safely
done:
- search page tree is empty
- highlight current page
- fix links
- rewrite anchors (maybe gitlab already works :^))
- link to original in generated/scraped
@@ -28,3 +27,4 @@ done:
- only 1 pid link in tree as title
- fix images
- breadcrumb; https://concisecss.com/documentation/ui
- convert hardcore to IDs are / so things can ignore this fact rather than partially [] and partially modified in frontend