~bigbes/sr-ht-dolt

ref: b4fd2233c89ca5c415284b61b83d41eb3d4982c1 sr-ht-dolt/web/templates/index.html -rw-r--r-- 1.3 KiB
b4fd2233 — Eugene Blikh log: take the logrus bridge from auxilia 9 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{{define "content" -}}
{{if .Username}}
<div class="row">
  <div class="col-md-4">
    <p>
      Welcome back, {{.Username}}! This is your Dolt database
      hosting service: <code>dolt clone</code>, <code>push</code> and
      <code>pull</code> over HTTPS, with a web UI for browsing branches,
      commits and tables.
    </p>
    <a href="/create" class="btn btn-primary btn-block"
      >Create new database {{icon "caret-right"}}</a>
    <a href="/settings/keys" class="btn btn-default btn-block"
      >Configure dolt credentials {{icon "caret-right"}}</a>
  </div>
  <div class="col-md-8">
    <hr class="d-md-none" />
    {{template "srht-repo-list" .Repos}}
    {{if .Repos.Items}}
    <a href="/~{{.Username}}" class="btn btn-default pull-right"
      >More on your profile {{icon "caret-right"}}</a>
    {{end}}
  </div>
</div>
{{else}}
<div class="header-extension"></div>
<h2>{{.SiteName}} <span class="text-danger">{{.SiteLabel}}</span></h2>
<p>
  dolt.sr.ht hosts <a href="https://www.dolthub.com/">Dolt</a> databases the way
  git.sr.ht hosts git repositories: <code>dolt clone</code>, <code>push</code> and
  <code>pull</code> over HTTPS, with an integrated web UI for browsing branches,
  commits and tables.
</p>
<p>
  <a href="{{.LoginURL}}" rel="nofollow">Log in</a> to create and manage
  databases.
</p>
{{end}}
{{- end}}