feat(webui): bootstrap a proper UI
This commit is contained in:
parent
09885ef1e4
commit
4e029fb83a
11 changed files with 127 additions and 75 deletions
|
@ -9,11 +9,13 @@ var errorTemplates = template.Must(template.ParseFS(htmlFS, "html/base.html", "h
|
|||
|
||||
func errorResponse(w http.ResponseWriter, status int, err error) {
|
||||
type ErrorData struct {
|
||||
Page
|
||||
Err error
|
||||
Status int
|
||||
StatusText string
|
||||
}
|
||||
render(w, errorTemplates, status, &ErrorData{
|
||||
Page: Page{Title: "Error", Section: "error"},
|
||||
Err: err,
|
||||
Status: status,
|
||||
StatusText: http.StatusText(status),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue