internal/web/templates/login.html

61564b7c32807deb349e28f2b5c6909cb4143870
gitbay/internal/web/templates/login.html history · blame · raw

18 lines · 1009 bytes

 1{{define "title"}}login · {{.Site}}{{end}}
 2{{define "content"}}
 3<h1>Log in</h1>
 4{{if .Error}}<p class="error" role="alert">{{.Error}}</p>{{end}}
 5<p>Browser sessions are minted over SSH — there is no password. From a machine
 6with your registered key:</p>
 7<pre class="message">ssh git@{{.Host}} web login</pre>
 8<p>then open the printed URL within five minutes.</p>
 9<h2>New here?</h2>
10{{if eq .Mode "open"}}<p><a href="/register">Create an account</a> — pick a username, paste your SSH
11public key, verify your email. Or from the terminal:</p>
12<pre class="message">ssh git@{{.Host}} register --username you --email you@example.org</pre>
13{{else if eq .Mode "invite"}}<p>This instance is invite-only. With a code from an admin,
14<a href="/register">create an account</a> — pick a username, paste your SSH public key. Or from
15the terminal:</p>
16<pre class="message">ssh git@{{.Host}} register --username you --invite &lt;code&gt;</pre>
17{{else}}<p>This instance is not accepting new accounts.</p>{{end}}
18{{end}}