web provider
This commit is contained in:
parent
182a829284
commit
fce28007f6
2 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>{{.Title}}</title>
|
<title>Tortuous</title>
|
||||||
|
|
||||||
<!-- Bootstrap -->
|
<!-- Bootstrap -->
|
||||||
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
|
<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 {
|
type Page struct {
|
||||||
Title string
|
|
||||||
Configuration Configuration
|
Configuration Configuration
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,5 +40,5 @@ func GetHtmlConfigHandler(response http.ResponseWriter, request *http.Request) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(response, fmt.Sprintf("error parsing url %v", err), 500)
|
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})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue