diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-07-30 12:11:51 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-07-31 12:24:04 +0000 |
| commit | dc769bad4c765a3c7b54150be90664e7a01caf40 (patch) | |
| tree | bfab6c733b64e0512f7be9d496e6d024097eba00 /pkg/manager | |
| parent | f8f2b4da0e6eaaf0aeed6f6d613d86d599aafcd3 (diff) | |
pkg/manager: display manager name
If the manager name is set, display it in the header.
Diffstat (limited to 'pkg/manager')
| -rw-r--r-- | pkg/manager/html/common.html | 2 | ||||
| -rw-r--r-- | pkg/manager/http.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/pkg/manager/html/common.html b/pkg/manager/html/common.html index 1a6d1c0ef..b1dc34796 100644 --- a/pkg/manager/html/common.html +++ b/pkg/manager/html/common.html @@ -14,7 +14,7 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the <table class="position_table"> <tr> <td> - <h1><a href="/">syzkaller</a></h1> + <h1><a href="/">syzkaller</a>{{if .Name}}: {{.Name}}{{end}}</h1> </td> <td> <form action="/action" method="post"> diff --git a/pkg/manager/http.go b/pkg/manager/http.go index eaf2459f5..b8ffbca81 100644 --- a/pkg/manager/http.go +++ b/pkg/manager/http.go @@ -1081,6 +1081,7 @@ type UIInput struct { } type UIPageHeader struct { + Name string PageTitle string // Relative page URL w/o GET parameters (e.g. "/stats"). URLPath string @@ -1104,6 +1105,7 @@ func (serv *HTTPServer) pageHeader(r *http.Request, title string) UIPageHeader { url.Host = "" url.User = nil return UIPageHeader{ + Name: serv.Cfg.Name, PageTitle: title, URLPath: r.URL.Path, CurrentURL: url.String(), |
