git.iko.soy/typeable/oauth2-proxy
on master help sign in
template updates to display version
commita49eadadeb3d347fafd700aa0e7284f883e94223 authorJehiah Czebotar <jehiah@gmail.com> dateSun 9 Nov 2014, 22:01 (12 years ago) parenta5f96b1
2 files changed+22
oauthproxy.go+2 templates.go+20
oauthproxy.go+2
@@ -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+20
@@ -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}}`)