diff options
| author | Jiffs Maverick <jiffsmaverick@gmail.com> | 2024-07-30 00:07:12 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 14:07:12 -0700 |
| commit | c8506609d83c0457ca409930edc4c3480fa1d7e8 (patch) | |
| tree | c36bd8b6f800d346503287e8a2639ddb0649dfaa | |
| parent | c9e526665be8bc8b9101049f90bfa9f178a4ce84 (diff) | |
| download | seaweedfs-c8506609d83c0457ca409930edc4c3480fa1d7e8.tar.xz seaweedfs-c8506609d83c0457ca409930edc4c3480fa1d7e8.zip | |
[filer] Added a version to the title of Filer UI (#5836)
Added a version to the title of Filer UI
| -rw-r--r-- | weed/server/filer_server_handlers_read_dir.go | 4 | ||||
| -rw-r--r-- | weed/server/filer_ui/filer.html | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/weed/server/filer_server_handlers_read_dir.go b/weed/server/filer_server_handlers_read_dir.go index 219656282..56f0f9cb4 100644 --- a/weed/server/filer_server_handlers_read_dir.go +++ b/weed/server/filer_server_handlers_read_dir.go @@ -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, diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html index fa5cdd4e8..627f3ba77 100644 --- a/weed/server/filer_ui/filer.html +++ b/weed/server/filer_ui/filer.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <title>SeaweedFS Filer</title> + <title>SeaweedFS Filer {{ .Version }}</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="/seaweedfsstatic/bootstrap/3.3.1/css/bootstrap.min.css"> <style> @@ -82,7 +82,7 @@ <div class="page-header"> <h1> <a href="https://github.com/seaweedfs/seaweedfs"><img src="/seaweedfsstatic/seaweed50x50.png"></img></a> - SeaweedFS Filer + SeaweedFS Filer <small>{{ .Version }}</small> </h1> </div> <div class="row"> |
