diff --git a/oauthproxy.go b/oauthproxy.go index 73f04fa..15f7b36 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -229,10 +229,12 @@ func (p *OauthProxy) SignInPage(rw http.ResponseWriter, req *http.Request, code SignInMessage string Htpasswd bool Redirect string + Version string }{ SignInMessage: p.SignInMessage, Htpasswd: p.HtpasswdFile != nil, Redirect: req.URL.RequestURI(), + Version: VERSION, } templates.ExecuteTemplate(rw, "sign_in.html", t) } diff --git a/templates.go b/templates.go index 7d29c40..5670861 100644 --- a/templates.go +++ b/templates.go @@ -76,6 +76,23 @@ func getTemplates() *template.Template { margin:0; box-sizing: border-box; } + footer { + display:block; + font-size:10px; + color:#aaa; + text-align:center; + margin-bottom:10px; + } + footer a { + display:inline-block; + height:25px; + line-height:25px; + color:#aaa; + text-decoration:underline; + } + footer a:hover { + color:#aaa; + } @@ -99,6 +116,9 @@ func getTemplates() *template.Template { {{ end }} + {{end}}`)