2018-06-10 01:31:13 +00:00
<!doctype html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
2018-06-26 07:01:41 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1.0, user-scalable=0" >
2018-07-07 05:02:47 +00:00
{{if USE_CDN}}
< link rel = "stylesheet" href = "https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity = "sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin = "anonymous" >
< link rel = "stylesheet" href = "https://assets.statup.io/base.css" >
{{ else }}
< link rel = "stylesheet" href = "/css/bootstrap.min.css" >
< link rel = "stylesheet" href = "/css/base.css" >
{{end}}
2018-06-28 07:28:07 +00:00
< link rel = "stylesheet" href = "https://assets.statup.io/codemirror.css" >
< link rel = "stylesheet" href = "https://assets.statup.io/codemirror-colorpicker.css" / >
2018-06-10 01:31:13 +00:00
2018-06-28 07:28:07 +00:00
< title > Statup | Settings< / title >
2018-06-10 01:31:13 +00:00
< / head >
< body >
2018-06-24 11:51:07 +00:00
< div class = "container col-md-7 col-sm-12 mt-md-5 bg-light" >
2018-06-10 01:31:13 +00:00
2018-06-11 03:41:02 +00:00
{{template "nav"}}
2018-06-10 01:31:13 +00:00
2018-06-30 22:22:56 +00:00
< div class = "col-12" >
< div class = "row" >
2018-06-10 01:31:13 +00:00
2018-08-23 07:28:48 +00:00
< div class = "col-md-3 col-sm-12 mb-4 mb-md-0" >
2018-06-10 01:31:13 +00:00
2018-06-11 03:41:02 +00:00
< div class = "nav flex-column nav-pills" id = "v-pills-tab" role = "tablist" aria-orientation = "vertical" >
< a class = "nav-link active" id = "v-pills-home-tab" data-toggle = "pill" href = "#v-pills-home" role = "tab" aria-controls = "v-pills-home" aria-selected = "true" > Settings< / a >
2018-06-28 07:28:07 +00:00
< a class = "nav-link" id = "v-pills-style-tab" data-toggle = "pill" href = "#v-pills-style" role = "tab" aria-controls = "v-pills-style" aria-selected = "false" > Theme Editor< / a >
2018-07-11 03:06:21 +00:00
{{ range .Communications }}
< a class = "nav-link text-capitalize" id = "v-pills-{{underscore .Method}}-tab" data-toggle = "pill" href = "#v-pills-{{underscore .Method}}" role = "tab" aria-controls = "v-pills-{{underscore .Method}}" aria-selected = "false" > {{.Method}}< / a >
{{ end }}
2018-06-19 04:48:25 +00:00
< a class = "nav-link" id = "v-pills-browse-tab" data-toggle = "pill" href = "#v-pills-browse" role = "tab" aria-controls = "v-pills-home" aria-selected = "false" > Browse Plugins< / a >
2018-07-20 05:26:41 +00:00
< a class = "nav-link d-none" id = "v-pills-backups-tab" data-toggle = "pill" href = "#v-pills-backups" role = "tab" aria-controls = "v-pills-backups" aria-selected = "false" > Backups< / a >
2018-06-12 05:23:30 +00:00
{{ range .Plugins }}
2018-06-19 06:00:56 +00:00
< a class = "nav-link text-capitalize" id = "v-pills-{{underscore .Name}}-tab" data-toggle = "pill" href = "#v-pills-{{underscore .Name}}" role = "tab" aria-controls = "v-pills-profile" aria-selected = "false" > {{.Name}}< / a >
2018-06-12 05:23:30 +00:00
{{end}}
2018-06-11 03:41:02 +00:00
< / div >
< / div >
2018-06-22 06:56:44 +00:00
< div class = "col-md-8 col-sm-12" >
2018-06-11 03:41:02 +00:00
< div class = "tab-content" id = "v-pills-tabContent" >
2018-06-12 07:21:16 +00:00
< div class = "tab-pane fade show active" id = "v-pills-home" role = "tabpanel" aria-labelledby = "v-pills-home-tab" >
< h3 > Settings< / h3 >
2018-06-19 00:01:03 +00:00
< form method = "POST" action = "/settings" >
< div class = "form-group" >
2018-06-30 22:22:56 +00:00
< label for = "project" > Project Name< / label >
< input type = "text" name = "project" class = "form-control" value = "{{ .Name }}" id = "project" placeholder = "Great Uptime" >
2018-06-19 00:01:03 +00:00
< / div >
< div class = "form-group" >
2018-06-30 22:22:56 +00:00
< label for = "description" > Project Description< / label >
< input type = "text" name = "description" class = "form-control" value = "{{ .Description }}" id = "description" placeholder = "Great Uptime" >
2018-06-19 00:01:03 +00:00
< / div >
2018-07-07 05:02:47 +00:00
< div class = "form-group row" >
< div class = "col-sm-7" >
< label for = "domain" > Domain< / label >
< input type = "text" name = "domain" class = "form-control" value = "{{ .Domain }}" id = "domain" >
< / div >
< div class = "col-sm-5 mt-4" >
< span class = "switch" >
2018-08-23 07:28:48 +00:00
< input type = "checkbox" name = "enable_cdn" class = "switch" id = "switch-normal" { { if USE_CDN } } checked { { end } } { { if . UsingAssets } } disabled { { end } } >
2018-07-07 05:02:47 +00:00
< label for = "switch-normal" > Enable CDN< / label >
< / span >
< / div >
2018-06-25 01:58:27 +00:00
< / div >
2018-06-19 04:48:25 +00:00
< div class = "form-group" >
2018-06-30 22:22:56 +00:00
< label for = "footer" > Custom Footer< / label >
< textarea rows = "4" name = "footer" class = "form-control" id = "footer" > {{ .Footer }}< / textarea >
2018-06-19 04:48:25 +00:00
< / div >
2018-06-19 00:01:03 +00:00
< button type = "submit" class = "btn btn-primary btn-block" > Save Settings< / button >
2018-07-17 09:18:20 +00:00
< div class = "form-group row mt-3" >
< label for = "api_key" class = "col-sm-3 col-form-label" > API Key< / label >
< div class = "col-sm-9" >
< input type = "text" class = "form-control select-input" value = "{{ .ApiKey }}" id = "api_key" readonly >
< / div >
2018-06-30 03:40:00 +00:00
< / div >
2018-07-17 09:18:20 +00:00
< div class = "form-group row" >
< label for = "api_secret" class = "col-sm-3 col-form-label" > API Secret< / label >
< div class = "col-sm-9" >
< input type = "text" class = "form-control select-input" value = "{{ .ApiSecret }}" id = "api_secret" readonly >
< small id = "emailHelp" class = "form-text text-muted" > You can < a href = "/api/renew" > Regenerate API Keys< / a > if you need to.< / small >
< / div >
2018-06-30 03:40:00 +00:00
< / div >
2018-06-19 00:01:03 +00:00
< / form >
2018-06-12 07:21:16 +00:00
< / div >
2018-06-28 07:28:07 +00:00
< div class = "tab-pane" id = "v-pills-style" role = "tabpanel" aria-labelledby = "v-pills-style-tab" >
{{if not .UsingAssets }}
2018-08-23 07:28:48 +00:00
< a href = "/settings/build" class = "btn btn-primary btn-block" { { if USE_CDN } } disabled { { end } } > Enable Local Assets< / a >
2018-06-28 07:28:07 +00:00
{{ else }}
< form method = "POST" action = "/settings/css" >
< ul class = "nav nav-pills mb-3" id = "pills-tab" role = "tablist" >
< li class = "nav-item col text-center" >
< a class = "nav-link active" id = "pills-vars-tab" data-toggle = "pill" href = "#pills-vars" role = "tab" aria-controls = "pills-vars" aria-selected = "true" > Variables< / a >
< / li >
< li class = "nav-item col text-center" >
< a class = "nav-link" id = "pills-theme-tab" data-toggle = "pill" href = "#pills-theme" role = "tab" aria-controls = "pills-theme" aria-selected = "false" > Base Theme< / a >
< / li >
2018-08-23 07:28:48 +00:00
< li class = "nav-item col text-center" >
< a class = "nav-link" id = "pills-mobile-tab" data-toggle = "pill" href = "#pills-mobile" role = "tab" aria-controls = "pills-mobile" aria-selected = "false" > Mobile< / a >
< / li >
2018-06-28 07:28:07 +00:00
< / ul >
< div class = "tab-content" id = "pills-tabContent" >
< div class = "tab-pane show active" id = "pills-vars" role = "tabpanel" aria-labelledby = "pills-vars-tab" >
< textarea name = "variables" id = "sass_vars" > {{ .SassVars }}< / textarea >
< / div >
< div class = "tab-pane" id = "pills-theme" role = "tabpanel" aria-labelledby = "pills-theme-tab" >
< textarea name = "theme" id = "theme_css" > {{ .BaseSASS }}< / textarea >
< / div >
2018-08-23 07:28:48 +00:00
< div class = "tab-pane" id = "pills-mobile" role = "tabpanel" aria-labelledby = "pills-mobile-tab" >
< textarea name = "mobile" id = "mobile_css" > {{ .MobileSASS }}< / textarea >
< / div >
2018-06-19 04:48:25 +00:00
< / div >
2018-06-28 07:28:07 +00:00
< button type = "submit" class = "btn btn-primary btn-block mt-2" > Save Style< / button >
2018-08-16 20:55:30 +00:00
< a href = "/settings/delete_assets" class = "btn btn-danger btn-block confirm-btn" > Delete All Assets< / a >
2018-06-19 04:48:25 +00:00
< / form >
2018-07-02 06:21:41 +00:00
{{end}}
2018-06-19 04:48:25 +00:00
< / div >
2018-07-10 12:05:20 +00:00
{{ range .Communications }}
2018-07-17 09:18:20 +00:00
< div class = "tab-pane" id = "v-pills-{{underscore .Method}}" role = "tabpanel" aria-labelledby = "v-pills-{{underscore .Method }}-tab" >
2018-07-12 06:53:18 +00:00
< form method = "POST" action = "/settings/notifier/{{ .Id }}" >
2018-07-10 12:05:20 +00:00
{{range .Form}}
< div class = "form-group" >
< label class = "text-capitalize" for = "{{underscore .Title}}" > {{.Title}}< / label >
2018-07-11 03:06:21 +00:00
< input type = "{{.Type}}" name = "{{underscore .DbField}}" class = "form-control" value = "{{ .Value }}" id = "{{underscore .Title}}" placeholder = "{{.Placeholder}}" >
2018-07-10 12:05:20 +00:00
< / div >
{{end}}
2018-07-17 09:18:20 +00:00
< div class = "form-group" >
< label class = "text-capitalize" for = "limits_per_hour_{{underscore .Method }}" > Limits per Hour< / label >
< input type = "number" name = "limits" class = "form-control" value = "{{.LimitValue}}" id = "limits_per_hour_{{underscore .Method }}" min = "1" max = "60" placeholder = "How many messages can send per hour" >
< / div >
2018-07-10 12:05:20 +00:00
< div class = "form-group row" >
< div class = "col-sm-6" >
< span class = "switch" >
2018-07-11 03:06:21 +00:00
< input type = "checkbox" name = "enable" class = "switch" id = "switch-{{ .Method }}" { { if . Enabled } } checked { { end } } >
2018-07-10 12:05:20 +00:00
< label for = "switch-{{ .Method }}" > Enable {{ .Method }}< / label >
< / span >
< / div >
< div class = "col-sm-6" >
< button type = "submit" class = "btn btn-primary btn-block text-capitalize" > Save {{ .Method }} Settings< / button >
< / div >
< / div >
< / form >
2018-07-17 09:18:20 +00:00
{{ if .Logs }}
Sent {{.SentLastHour}} out of {{.LimitValue}} in the last hour< br >
{{ range .Logs }}
< div class = "card mt-1" >
< div class = "card-body" >
{{.Message}}
< p class = "card-text" > < small class = "text-muted" > Sent {{.Time.Ago}}< / small > < / p >
< / div >
< / div >
{{ end }}
{{ end }}
2018-07-10 12:05:20 +00:00
< / div >
{{ end }}
2018-06-12 07:21:16 +00:00
< div class = "tab-pane fade" id = "v-pills-browse" role = "tabpanel" aria-labelledby = "v-pills-browse-tab" >
{{ range .Repos }}
< div class = "card col-6" style = "width: 18rem;" >
< div class = "card-body" >
< h5 class = "card-title" > {{ .Name }}< / h5 >
< p class = "card-text" > {{ .Description }}< / p >
< a href = "/plugins/download/{{ .Name }}" class = "card-link" > Add< / a >
< / div >
< / div >
{{ end }}
< / div >
2018-06-11 09:58:41 +00:00
2018-07-20 05:26:41 +00:00
< div class = "tab-pane fade" id = "v-pills-backups" role = "tabpanel" aria-labelledby = "v-pills-backups-tab" >
< a href = "/backups/create" class = "btn btn-primary btn-block" > Backup Database< / a >
< / div >
2018-06-12 05:23:30 +00:00
{{ range .Plugins }}
2018-06-14 06:38:15 +00:00
2018-06-19 06:00:56 +00:00
< div class = "tab-pane fade" id = "v-pills-{{underscore .Name}}" role = "tabpanel" aria-labelledby = "v-pills-{{underscore .Name}}-tab" >
2018-06-14 01:19:00 +00:00
< h4 class = "text-capitalize" > {{ .Name }}< / h4 >
< span class = "text-muted" > {{ .Description }}< / span >
2018-06-19 06:17:43 +00:00
< div class = "mt-1" >
2018-06-19 06:00:56 +00:00
{{ safe .Form }}
2018-06-19 06:17:43 +00:00
< / div >
2018-06-19 06:00:56 +00:00
2018-06-12 05:23:30 +00:00
< / div >
{{end}}
2018-06-11 09:58:41 +00:00
2018-06-11 03:41:02 +00:00
< / div >
2018-06-10 01:31:13 +00:00
< / div >
< / div >
< / div >
2018-06-30 22:22:56 +00:00
< / div >
2018-06-22 04:02:57 +00:00
{{template "footer"}}
2018-07-07 05:02:47 +00:00
{{if USE_CDN}}
2018-08-22 05:41:15 +00:00
< script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" > < / script >
2018-07-07 05:02:47 +00:00
< script src = "https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity = "sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin = "anonymous" > < / script >
{{ else }}
2018-08-22 05:41:15 +00:00
< script src = "/js/jquery-3.3.1.min.js" > < / script >
2018-07-07 05:02:47 +00:00
< script src = "/js/bootstrap.min.js" > < / script >
{{end}}
2018-06-28 07:28:07 +00:00
< script src = "https://assets.statup.io/codemirror.js" > < / script >
< script src = "https://assets.statup.io/css.js" > < / script >
< script src = "https://assets.statup.io/codemirror-colorpicker.min.js" > < / script >
2018-07-07 05:02:47 +00:00
{{if USE_CDN}}
< script src = "https://assets.statup.io/main.js" > < / script >
{{else}}
2018-06-28 07:28:07 +00:00
< script src = "/js/main.js" > < / script >
2018-07-07 05:02:47 +00:00
{{end}}
2018-06-19 04:48:25 +00:00
2018-06-10 01:31:13 +00:00
< / body >
2018-09-06 05:28:35 +00:00
< / html >