redir to /ui/files for about page, fix root+ button

This commit is contained in:
Bel LaPointe
2022-02-17 12:42:35 -07:00
parent 21f671517b
commit ff8a77beea
5 changed files with 30 additions and 22 deletions

View File

@@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<header>
<title>{{ .This.Title }}</title>
<title>id={{ .This.ID }}, {{ .This.Title }}</title>
{{ template "_import" }}
</header>
<body class="fullscreen tb_fullscreen lr_fullscreen" style="position: absolute">
@@ -11,10 +11,14 @@
<div class="columns thic_flex tb_buffer" style="height: calc(100% - 4rem);">
{{ template "_filetree" . }}
<div class="thic_flex lr_fullscreen" style="margin-left: 1em; width: 5px;">
{{ if .This.ReadOnly }}
{{ template "_readonly" . }}
{{ if eq .This.ID "" }}
{{ template "_about" . }}
{{ else }}
{{ template "_editor" . }}
{{ if .This.ReadOnly }}
{{ template "_readonly" . }}
{{ else }}
{{ template "_editor" . }}
{{ end }}
{{ end }}
</div>
</div>

View File

@@ -43,7 +43,7 @@
`
}
function leafHTML(id, branch) {
const href="/ui/files/" + (id ? id : "#")
const href="/ui/files/" + (id ? id : "")
var nameSafeId = id.replace(/\//g, "-")
var parentNameSafeId = nameSafeId
if (id.includes("/"))