feat(webui): move channel list into navbar dropdown with checkmark; remove sidebar and footer; show short commit centered in navbar
This commit is contained in:
parent
b70cf17713
commit
6e64969bb6
5 changed files with 22 additions and 10 deletions
|
|
@ -36,6 +36,11 @@ func (s *Server) render(w http.ResponseWriter, name string, data map[string]any)
|
|||
}
|
||||
data["Version"] = s.Version
|
||||
data["Commit"] = s.Commit
|
||||
if s.Commit != "" {
|
||||
c := s.Commit
|
||||
if len(c) > 12 { c = c[:12] }
|
||||
data["CommitShort"] = c
|
||||
}
|
||||
base := strings.TrimSuffix(path.Base(name), path.Ext(name))
|
||||
if base == "dashboard" {
|
||||
data["Title"] = "sojuboy"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue