{{ define "content" }}
<h1>Manage statuses</h1>
{{ template "flash" .flash }}
{{ range .statuses }}
<article class="status">
    {{ template "status" . }}
    {{ if eq $.logged .User }}
    <nav><a href="/edit?id={{ .Id }}">Edit</a> <a href="/remove?id={{ .Id }}">Delete</a></nav>
    {{ end }}
</article>
{{ end }}
{{ if or .showMore (ne 0 .page) }}
<p>
    {{ if ne 0 .page }}
    {{ if eq 0 .prev_page }}
    <a href="manage">Newer statuses</a>
    {{ else }}
    <a href="manage?page={{ .prev_page }}">Newer statuses</a>
    {{ end }}
    {{ end }}
    {{ if .showMore }}
    <a href="manage?page={{ .next_page }}">Older statuses</a>
    {{- end }}
</p>
{{ end }}
{{ end }}