{{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>
{{/* The one question no single database answers: what is ready to work
across every tracker this viewer can browse. */}}
<a href="/ready" class="btn btn-default btn-block"
>What is ready to work {{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. The databases carrying a <code>bd</code> issue tracker also answer
<a href="/ready">what is ready to work</a> across all of them.
</p>
{{end}}
{{- end}}