仰望星辰工作室

gitcat

gitcat/ webroot/templates/login.html 1.8 KB · 39 行 原始文件
1{{define "content"}}
2<section class="auth">
3 <div class="card auth-card">
4 <div class="auth-brand">
5 <span class="brand-mark" aria-hidden="true">
6 <svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
7 <path d="M6.2 10.4 7.5 5.2l3.9 2.5"/>
8 <path d="M17.8 10.4 16.5 5.2l-3.9 2.5"/>
9 <path d="M6.2 9.9v2.6c0 3.7 2.6 5.9 5.8 5.9s5.8-2.2 5.8-5.9V9.9"/>
10 <path d="M3.3 13.8h1.8M3.3 15.8h1.8M20.7 13.8h-1.8M20.7 15.8h-1.8"/>
11 <path d="M12 9.9v1.2m0 0c0 1.4-2.2 1.2-2.2 2.6m2.2-2.6c0 1.4 2.2 1.2 2.2 2.6"/>
12 <path d="M11.2 17.2c.4.45 1.2.45 1.6 0"/>
13 </svg>
14 </span>
15 <div>
16 <h1>登录 {{.SiteName}}</h1>
17 <p class="muted">使用工作室账号登录后即可推送代码</p>
18 </div>
19 </div>
20 <form method="post" action="/login" autocomplete="off">
21 <input type="hidden" name="next" value="{{if .Data.Next}}{{.Data.Next}}{{end}}">
22 <label class="field">
23 <span>用户名</span>
24 <input type="text" name="username" required autofocus autocomplete="username" value="{{if .Data.Username}}{{.Data.Username}}{{end}}" placeholder="你的 gitcat 账号">
25 </label>
26 <label class="field">
27 <span>密码</span>
28 <input type="password" name="password" required autocomplete="current-password" placeholder="登录密码">
29 </label>
30 <button class="btn btn-primary btn-block btn-lg" type="submit">登录</button>
31 </form>
32 <p class="hint">还没有账号?本站不开放注册,请联系管理员在后台创建。</p>
33 <div class="tip">
34 <strong>git 推送提示</strong>
35 <p>命令行推送时,弹出账号密码输入框,填写同样的用户名和密码即可。</p>
36 </div>
37 </div>
38</section>
39{{end}}