2021-04-25 19:33:22 +00:00
|
|
|
{{ template "base.html" . }}
|
|
|
|
|
|
|
|
{{ define "content" }}
|
|
|
|
<div class="content-block">
|
|
|
|
<div class="optionbar">
|
|
|
|
<div class="options">
|
2021-10-24 20:48:28 +00:00
|
|
|
<a class="button" href="{{ .AtomFeedUrl }}"><span class="icon big pr1">4</span> RSS Feed</a>
|
2021-04-25 19:33:22 +00:00
|
|
|
{{ if .User }}
|
2021-07-23 19:00:37 +00:00
|
|
|
<form method="POST" action="{{ .MarkAllReadUrl }}">
|
|
|
|
{{ csrftoken .Session }}
|
|
|
|
<button type="submit"><span class="big pr1">✓</span> Mark all posts on site as read</button>
|
|
|
|
</form>
|
2021-04-25 19:33:22 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<div class="options">
|
|
|
|
{{ template "pagination.html" .Pagination }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ range .Posts }}
|
2021-05-30 18:35:01 +00:00
|
|
|
<div class="post-list-item flex items-center ph3 pv2 {{ if .Unread }}unread{{ else }}read{{ end }} {{ .Classes }}">
|
|
|
|
<img class="avatar-icon mr2" src="{{ .User.AvatarUrl }}">
|
|
|
|
<div class="flex-grow-1 overflow-hidden">
|
2021-06-22 10:27:27 +00:00
|
|
|
{{ template "breadcrumbs.html" .Breadcrumbs }}
|
2021-05-30 18:35:01 +00:00
|
|
|
<div class="title nowrap truncate"><a href="{{ .Url }}" title="{{ .Preview }}">{{ if .PostTypePrefix }}{{ .PostTypePrefix }}: {{ end }}{{ .Title }}</a></div>
|
|
|
|
<div class="details">
|
|
|
|
<a class="user" href="{{ .User.ProfileUrl }}">{{ .User.Name }}</a> — {{ timehtml (relativedate .Date) .Date }}
|
|
|
|
</div>
|
|
|
|
{{ with .Preview }}
|
|
|
|
<div class="mt1">
|
|
|
|
{{ noescape . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<div class="goto">
|
|
|
|
<a href="{{ .Url }}">»</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-25 19:33:22 +00:00
|
|
|
{{ end }}
|
|
|
|
<div class="optionbar bottom">
|
|
|
|
<div>
|
|
|
|
</div>
|
|
|
|
<div class="options">
|
|
|
|
{{ template "pagination.html" .Pagination }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|