forked from Ivasoft/traefik
web provider
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{.Title}}</title>
|
||||
<title>Tortuous</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
|
||||
|
||||
3
web.go
3
web.go
@@ -17,7 +17,6 @@ type WebProvider struct {
|
||||
}
|
||||
|
||||
type Page struct {
|
||||
Title string
|
||||
Configuration Configuration
|
||||
}
|
||||
|
||||
@@ -41,5 +40,5 @@ func GetHtmlConfigHandler(response http.ResponseWriter, request *http.Request) {
|
||||
if err != nil {
|
||||
http.Error(response, fmt.Sprintf("error parsing url %v", err), 500)
|
||||
}
|
||||
templates.ExecuteTemplate(response, "configuration.html", Page{Title: "Home", Configuration:*currentConfiguration})
|
||||
templates.ExecuteTemplate(response, "configuration.html", Page{Configuration:*currentConfiguration})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user