Skip to content

Commit a49eada

Browse files
committed
template updates to display version
1 parent a5f96b1 commit a49eada

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

oauthproxy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,12 @@ func (p *OauthProxy) SignInPage(rw http.ResponseWriter, req *http.Request, code
229229
SignInMessage string
230230
Htpasswd bool
231231
Redirect string
232+
Version string
232233
}{
233234
SignInMessage: p.SignInMessage,
234235
Htpasswd: p.HtpasswdFile != nil,
235236
Redirect: req.URL.RequestURI(),
237+
Version: VERSION,
236238
}
237239
templates.ExecuteTemplate(rw, "sign_in.html", t)
238240
}

templates.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,23 @@ func getTemplates() *template.Template {
7676
margin:0;
7777
box-sizing: border-box;
7878
}
79+
footer {
80+
display:block;
81+
font-size:10px;
82+
color:#aaa;
83+
text-align:center;
84+
margin-bottom:10px;
85+
}
86+
footer a {
87+
display:inline-block;
88+
height:25px;
89+
line-height:25px;
90+
color:#aaa;
91+
text-decoration:underline;
92+
}
93+
footer a:hover {
94+
color:#aaa;
95+
}
7996
</style>
8097
</head>
8198
<body>
@@ -99,6 +116,9 @@ func getTemplates() *template.Template {
99116
</form>
100117
</div>
101118
{{ end }}
119+
<footer>
120+
Secured with <a href="https://github.com/bitly/google_auth_proxy#google_auth_proxy">Google Auth Proxy</a> version {{.Version}}
121+
</footer>
102122
</body>
103123
</html>
104124
{{end}}`)

0 commit comments

Comments
 (0)