template updates to display version

This commit is contained in:
Jehiah Czebotar 2014-11-09 22:01:50 -05:00
parent a5f96b1754
commit a49eadadeb
2 changed files with 22 additions and 0 deletions

View File

@ -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)
}

View File

@ -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;
}
</style>
</head>
<body>
@ -99,6 +116,9 @@ func getTemplates() *template.Template {
</form>
</div>
{{ end }}
<footer>
Secured with <a href="https://github.com/bitly/google_auth_proxy#google_auth_proxy">Google Auth Proxy</a> version {{.Version}}
</footer>
</body>
</html>
{{end}}`)