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:
Thomas Cravey 2025-08-17 15:30:49 -05:00
parent b70cf17713
commit 6e64969bb6
5 changed files with 22 additions and 10 deletions

View file

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