diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-19 10:29:21 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-19 10:29:21 -0800 |
commit | f7154870291066b53ae7307925748f17d58ea1e9 (patch) | |
tree | 3c0916d77910a141bd41ac3ff4e3a4306aab1877 | |
parent | 3b10506851c80b6e177465921822048bca8b79b1 (diff) |
contin. debugging host port issue in config
-rw-r--r-- | system/admin/admin.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go index 53948af..a0ac180 100644 --- a/system/admin/admin.go +++ b/system/admin/admin.go @@ -86,9 +86,10 @@ var endAdminHTML = ` </html>` type admin struct { - Logo string - Types map[string]func() interface{} - Subview template.HTML + Logo string + Types map[string]func() interface{} + Subview template.HTML + HTTPPort string } // Admin ... @@ -146,6 +147,7 @@ var initAdminHTML = ` <input placeholder="Enter a strong password" class="validate required" type="password" id="password" name="password"/> <label for="password" class="active">Password</label> </div> + <input type="hidden" name="http_port" value="{{.HTTPPort}}"/> <button class="btn waves-effect waves-light right">Start</button> </form> </div> @@ -179,7 +181,8 @@ func Init() ([]byte, error) { } a := admin{ - Logo: string(cfg), + Logo: string(cfg), + HTTPPort: db.ConfigCache("http_port"), } buf := &bytes.Buffer{} |