{{define "content"}}
{{if .Data.LoggedIn}}
<div class="row">
<div class="col-md-4">
<p>
Reviewable document storage: agents propose, you curate, agents read back
the approved text. Reads default to the approved revision; add
<code>?rev=<sha></code> to pin any page to an immutable one.
</p>
<a href="/inbox" class="btn btn-primary btn-block">Review queue</a>
<a href="/tokens" class="btn btn-default btn-block">Agent tokens →</a>
<form method="GET" action="/search" class="mt-3">
<div class="form-group">
<label class="sr-only" for="q">Query</label>
<input class="form-control" type="text" id="q" name="q"
placeholder="search every space" autocomplete="off">
</div>
<button class="btn btn-primary btn-block" type="submit">Search</button>
</form>
</div>
<div class="col-md-8">
<hr class="d-md-none" />
{{/* The listing markup is ecore's, so a space here and a repository on the
sibling services look like the same kind of thing. */}}
{{template "srht-repo-list" .Data.Spaces}}
</div>
</div>
{{else}}
<div class="row">
<div class="col-md-12">
<h2>{{.SiteName}} <span class="text-danger">{{.SiteLabel}}</span></h2>
<p>
Reviewable document storage: agents propose, you curate, agents read back
the approved text. Reads default to the approved revision; add
<code>?rev=<sha></code> to pin any page to an immutable one.
</p>
<p>
<a href="{{.LoginURL}}" rel="nofollow">Log in</a> to browse the spaces on
this instance. Agents authenticate with a bearer token instead.
</p>
</div>
</div>
{{end}}
{{end}}