internal/web/templates/registered.html

ac8d910ff31c2fadc452928e1d56c64b4af25495
gitbay/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 &amp; 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}}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form