1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{{template "head" .}}
<h1>What's new</h1>
{{if .UnseenChanges}}<h2>Not seen yet <span class="muted">{{.Unseen}}</span>
{{template "seenform" (.SeenForm "all" "1" "mark all seen")}}</h2>
<table>{{range .UnseenChanges}}{{template "change" .}}{{end}}</table>
{{if gt .Unseen (len .UnseenChanges)}}<p><a href="{{.With "/?unseen=1"}}">all {{.Unseen}} unseen →</a></p>{{end}}
{{end}}
{{if .Upcoming}}<h2>Next 7 days</h2>
<table>{{range .Upcoming}}{{template "event" .}}{{end}}</table>{{end}}
<h2>{{if .OnlyUnseen}}Not seen yet{{else}}Changes{{end}}{{if .Range}} <span class="muted">{{.Range}}</span>{{end}}
{{if and .OnlyUnseen .Changes}}{{template "seenform" (.SeenForm "all" "1" "mark all seen")}}{{end}}</h2>
{{if .Changes}}<table>{{range .Changes}}{{template "change" .}}{{end}}</table>
{{else}}<p class="muted">Nothing yet.{{if not .Session}} Log in to start mirroring.{{end}}</p>{{end}}
<p>{{if .Paging.Prev}}<a href="{{.Paging.Prev}}">← newer</a>{{end}}
{{if .Paging.Next}}<a href="{{.Paging.Next}}">older ({{.Paging.NextCount}}) →</a>{{end}}
<span class="muted">{{.Total}} changes</span></p>
{{template "foot" .}}
|