Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
template updates to display version
Browse files Browse the repository at this point in the history
  • Loading branch information
jehiah committed Nov 10, 2014
1 parent a5f96b1 commit a49eada
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oauthproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
20 changes: 20 additions & 0 deletions templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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}}`)
Expand Down

0 comments on commit a49eada

Please sign in to comment.