mirror of https://github.com/statping/statping
missing login banner image
parent
7901aeea7c
commit
a451db51f1
|
@ -2,7 +2,7 @@
|
|||
<div class="offset-md-3 offset-lg-4 offset-0 col-lg-4 col-md-6 mt-5">
|
||||
|
||||
<div class="offset-1 offset-lg-2 col-lg-8 col-10 mb-4 mb-md-3">
|
||||
<img alt="Statping Login" class="embed-responsive" src="http://0.0.0.0:8585/banner.png">
|
||||
<img alt="Statping Login" class="embed-responsive" src="banner.png">
|
||||
</div>
|
||||
|
||||
<div class="login_container col-12 p-4">
|
||||
|
|
|
@ -68,8 +68,12 @@ func Router() *mux.Router {
|
|||
}
|
||||
|
||||
if source.UsingAssets(dir) {
|
||||
prefixed := http.StripPrefix(basePath+"assets/", http.FileServer(http.Dir(dir+"/assets/")))
|
||||
r.PathPrefix("/assets/").Handler(prefixed)
|
||||
indexHandler := http.FileServer(http.Dir(dir + "/assets/"))
|
||||
|
||||
r.PathPrefix("/css/").Handler(http.StripPrefix(basePath, staticAssets("css")))
|
||||
r.PathPrefix("/favicon/").Handler(http.StripPrefix(basePath, staticAssets("favicon")))
|
||||
r.PathPrefix("/robots.txt").Handler(http.StripPrefix(basePath, indexHandler))
|
||||
r.PathPrefix("/banner.png").Handler(http.StripPrefix(basePath, indexHandler))
|
||||
} else {
|
||||
tmplFileSrv := http.FileServer(source.TmplBox.HTTPBox())
|
||||
tmplBoxHandler := http.StripPrefix(basePath, tmplFileSrv)
|
||||
|
|
Loading…
Reference in New Issue