{{define "content"}}
<div class="row">
<div class="col-md-12">
<h2>{{.SiteName}} <span class="text-danger">spec</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>
</div>
</div>
{{if .Data.LoggedIn}}
<div class="row">
<div class="col-md-12">
<p><a href="/inbox">Review queue</a> — proposals waiting on you.</p>
<form method="GET" action="/search" class="form-inline">
<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" type="submit">Search</button>
</form>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h3>Your spaces</h3>
{{if .Data.Spaces}}
<ul class="list-unstyled">
{{range .Data.Spaces}}
<li><a href="{{.Href}}"><strong>{{.Ref}}</strong></a></li>
{{end}}
</ul>
{{else}}
<p class="text-muted">
No spaces yet. A space is a bare git repository owned by this service;
it appears here once it has been created and pushed to.
</p>
{{end}}
</div>
</div>
{{else}}
<div class="row">
<div class="col-md-12">
<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}}