redir to /ui/files for about page, fix root+ button
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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("/"))
|
||||
|
||||
Reference in New Issue
Block a user