surwiki/templates/changes.html
2017-10-22 12:41:42 +02:00

32 lines
862 B
HTML

<div class="container">
<header>
<h1>Changes</h1>
</header>
<article>
{{#newer}}<nav><ul class="dense"
><li><a rel="prev" href="{{.more}}">More recent changes</a></li
><li><a rel="first" href="{{.end}}">Most recent changes</a></li
></ul></nav>{{/newer}}
<table>
<tr>
<th>Article</th>
<th>Updated</th>
<th>Author</th>
</tr>
{{#changes}}
<tr>
<td><a href="{{#.slug.is_empty()?}}.{{/.slug.is_empty()}}{{.slug}}">{{.title}}</a></td>
<td>{{.created}}</td>
<td>{{#.author}}{{.}}{{/.author}}{{^.author}}<i>Anonymous</i>{{/.author}}</td>
</tr>
{{/changes}}
</table>
{{#older}}<nav><ul class="dense"
><li><a rel="next" href="{{.more}}">Older changes</a></li
><li><a rel="last" href="{{.end}}">First changes</a></li
></ul></nav>{{/older}}
</article>
</div>
{{>footer/default.html}}