internal/web/templates/registered.html
37 lines · 1599 bytes
1{{define "width"}}bounded{{end}}
2{{define "title"}}welcome · {{.Site}}{{end}}
3{{define "content"}}
4<div class="landing">
5<h1>welcome, {{.Username}}</h1>
6{{if str . "Error"}}<p class="error" role="alert">{{str . "Error"}}</p>{{end}}
7<pre class="quickstart" tabindex="0">{{.Message}}</pre>
8{{if eq (str . "Mode") "open"}}
9<section class="setcard">
10<h2>Verify your email now</h2>
11<p class="meta">Paste the verification code from your inbox to activate your account and sign straight in.</p>
12<form method="post" action="/register/verify" class="setform">
13 <input type="hidden" name="username" value="{{.Username}}">
14 <label for="reg-code">Verification code</label>
15 <input type="text" id="reg-code" name="code" required autocomplete="one-time-code" autocapitalize="none" spellcheck="false" placeholder="from the mail">
16 <button type="submit">Verify & sign in</button>
17</form>
18</section>
19{{end}}
20<section class="setcard">
21<h2>On the web</h2>
22<ol>
23<li>Copy the verification code from the mail you were just sent.</li>
24<li><a href="/login">Sign in</a> with an emailed link.</li>
25<li>Paste the code in <a href="/settings#emails">Settings → Email addresses</a>.</li>
26</ol>
27<p>Then + creates your first repository. Using the iOS app? Create a
28token in <a href="/settings#tokens">Settings → API tokens</a>.</p>
29</section>
30<section class="setcard">
31<h2>From the terminal</h2>
32<pre class="quickstart copyable" tabindex="0">ssh git@{{.Host}} whoami
33ssh git@{{.Host}} repo create {{.Username}}/hello
34gitbay web login # mints a browser session from your terminal</pre>
35</section>
36</div>
37{{end}}