mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-06-28 15:41:13 +08:00
[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:
parent
c9e526665b
commit
c8506609d8
@ -62,6 +62,7 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Reque
|
|||||||
|
|
||||||
if r.Header.Get("Accept") == "application/json" {
|
if r.Header.Get("Accept") == "application/json" {
|
||||||
writeJsonQuiet(w, r, http.StatusOK, struct {
|
writeJsonQuiet(w, r, http.StatusOK, struct {
|
||||||
|
Version string
|
||||||
Path string
|
Path string
|
||||||
Entries interface{}
|
Entries interface{}
|
||||||
Limit int
|
Limit int
|
||||||
@ -69,6 +70,7 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Reque
|
|||||||
ShouldDisplayLoadMore bool
|
ShouldDisplayLoadMore bool
|
||||||
EmptyFolder bool
|
EmptyFolder bool
|
||||||
}{
|
}{
|
||||||
|
util.Version(),
|
||||||
path,
|
path,
|
||||||
entries,
|
entries,
|
||||||
limit,
|
limit,
|
||||||
@ -80,6 +82,7 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Reque
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = ui.StatusTpl.Execute(w, struct {
|
err = ui.StatusTpl.Execute(w, struct {
|
||||||
|
Version string
|
||||||
Path string
|
Path string
|
||||||
Breadcrumbs []ui.Breadcrumb
|
Breadcrumbs []ui.Breadcrumb
|
||||||
Entries interface{}
|
Entries interface{}
|
||||||
@ -89,6 +92,7 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Reque
|
|||||||
EmptyFolder bool
|
EmptyFolder bool
|
||||||
ShowDirectoryDelete bool
|
ShowDirectoryDelete bool
|
||||||
}{
|
}{
|
||||||
|
util.Version(),
|
||||||
path,
|
path,
|
||||||
ui.ToBreadcrumb(path),
|
ui.ToBreadcrumb(path),
|
||||||
entries,
|
entries,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SeaweedFS Filer</title>
|
<title>SeaweedFS Filer {{ .Version }}</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="stylesheet" href="/seaweedfsstatic/bootstrap/3.3.1/css/bootstrap.min.css">
|
<link rel="stylesheet" href="/seaweedfsstatic/bootstrap/3.3.1/css/bootstrap.min.css">
|
||||||
<style>
|
<style>
|
||||||
@ -82,7 +82,7 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>
|
<h1>
|
||||||
<a href="https://github.com/seaweedfs/seaweedfs"><img src="/seaweedfsstatic/seaweed50x50.png"></img></a>
|
<a href="https://github.com/seaweedfs/seaweedfs"><img src="/seaweedfsstatic/seaweed50x50.png"></img></a>
|
||||||
SeaweedFS Filer
|
SeaweedFS Filer <small>{{ .Version }}</small>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Loading…
Reference in New Issue
Block a user