Browse Source

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

Added a version to the title of Filer UI
pull/5843/head
Jiffs Maverick 5 months ago
committed by GitHub
parent
commit
c8506609d8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      weed/server/filer_server_handlers_read_dir.go
  2. 4
      weed/server/filer_ui/filer.html

4
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,

4
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">

Loading…
Cancel
Save