[filer] Added a version to the title of Filer UI (#5836)

Added a version to the title of Filer UI
This commit is contained in:
Jiffs Maverick
2024-07-30 00:07:12 +03:00
committed by GitHub
parent c9e526665b
commit c8506609d8
2 changed files with 6 additions and 2 deletions

View File

@@ -62,6 +62,7 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Reque
if r.Header.Get("Accept") == "application/json" {
writeJsonQuiet(w, r, http.StatusOK, struct {
Version string
Path string
Entries interface{}
Limit int
@@ -69,6 +70,7 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Reque
ShouldDisplayLoadMore bool
EmptyFolder bool
}{
util.Version(),
path,
entries,
limit,
@@ -80,6 +82,7 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Reque
}
err = ui.StatusTpl.Execute(w, struct {
Version string
Path string
Breadcrumbs []ui.Breadcrumb
Entries interface{}
@@ -89,6 +92,7 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Reque
EmptyFolder bool
ShowDirectoryDelete bool
}{
util.Version(),
path,
ui.ToBreadcrumb(path),
entries,