{{define "content" -}}
{{if .CurrentUser}}
<div class="row">
<div class="col-md-4">
<p>
Welcome back, {{.CurrentUser.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 "repoList" .Repos}}
{{if .Repos}}
<a href="/~{{.CurrentUser.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}}