diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-11-08 12:22:28 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-11-08 14:15:20 +0000 |
| commit | 0571368b3bc37f92b06873e02342317006b0da60 (patch) | |
| tree | 35637840d7e9098ee8ea54784d6c03b58e1be8cc /pkg/manager/html/common.html | |
| parent | 44b1e39faee03d3a5f496f66157a41f939e74286 (diff) | |
pkg/manager: move HTML code to separate files
Diffstat (limited to 'pkg/manager/html/common.html')
| -rw-r--r-- | pkg/manager/html/common.html | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/pkg/manager/html/common.html b/pkg/manager/html/common.html new file mode 100644 index 000000000..6a8599902 --- /dev/null +++ b/pkg/manager/html/common.html @@ -0,0 +1,60 @@ +{{/* +Copyright 2024 syzkaller project authors. All rights reserved. +Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. +*/}} + +<!doctype html> +<html> +<head> + <title>{{.PageTitle}}</title> + {{HEAD}} +</head> +<body> + <header id="topbar"> + <table class="position_table"> + <tr> + <td> + <h1><a href="/">syzkaller</a></h1> + </td> + <td> + <form action="/action" method="post"> + <input type="hidden" name="url" value="{{.CurrentURL}}" /> + <button type="submit" name="action" value="toggle-expert" class="action_button{{if .ExpertMode}}_selected{{end}}" title="Toggle expert mode"> + 🧠 + </input> + <button type="submit" name="action" value="pause-unpause" class="action_button{{if .Paused}}_selected{{end}}" title="Pause/unpause fuzzing"> + {{if .Paused}}▶️{{else}}⏸️{{end}} + </input> + </form> + </td> + <td class="search"> + <a href="https://github.com/google/syzkaller/blob/master/docs/" target="_blank">docs</a> | + <a href="https://groups.google.com/forum/#!forum/syzkaller" target="_blank">mailing list</a> | + <a href="{{.GitRevisionLink}}" target="_blank">source {{.GitRevision}}</a> + </td> + </tr> + </table> + <div class="navigation"> + <div class="navigation_tab{{if eq .URLPath "/stats"}}_selected{{end}}"> + <a href='/stats'>📈 stats</a> + </div> + <div class="navigation_tab{{if eq .URLPath "/cover"}}_selected{{end}}"> + <a href='/cover'>📃 coverage</a> + </div> + <div class="navigation_tab{{if eq .URLPath "/syscalls"}}_selected{{end}}"> + <a href='/syscalls'>🤖 syscalls</a> + </div> + <div class="navigation_tab{{if eq .URLPath "/corpus"}}_selected{{end}}"> + <a href='/corpus'>🛒 corpus</a> + </div> + <div class="navigation_tab{{if eq .URLPath "/vms"}}_selected{{end}}"> + <a href='/vms'>💻 VMs</a> + </div> + <div class="navigation_tab{{if eq .URLPath "/config"}}_selected{{end}}"> + <a href='/config'>🔧 config</a> + </div> + </div> + </header> + <br> + %s +</body></html> |
