fix base url and read other headers
This commit is contained in:
parent
099692c91b
commit
b957988957
3 changed files with 41 additions and 14 deletions
|
@ -19,10 +19,8 @@ var (
|
|||
Templates *template.Template
|
||||
|
||||
funcs = template.FuncMap{
|
||||
"static": staticFn,
|
||||
"staticCSS": func(filename string) (template.CSS, error) {
|
||||
data, err := staticFn(filename)
|
||||
return template.CSS(data), err
|
||||
"version": func() string {
|
||||
return "better-zwave-locks v0.x.x aaaaaaaa"
|
||||
},
|
||||
}
|
||||
)
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>Lock Server</title>
|
||||
<title>Better Z-Wave Locks for Home Assistant</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<style type="text/css">{{ staticCSS "main.css" }}</style>
|
||||
<link rel="stylesheet" href="{{ .BaseURL }}/static/main.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<header>
|
||||
<h1>Lockserver</h1>
|
||||
<h1>Better Z-Wave Locks</h1>
|
||||
<div id="user"></div>
|
||||
</header>
|
||||
<div id="main">
|
||||
|
@ -21,7 +21,7 @@
|
|||
</ul>
|
||||
</div>
|
||||
<footer>
|
||||
<code>lockserver v0.x.x aaaaaa</code>
|
||||
<code>{{ version }}</code>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue