Add pagination to forums archives.

This commit is contained in:
2020-08-28 14:19:09 -05:00
parent 0e3f1274cc
commit ef3f3dd60c
5 changed files with 23 additions and 3 deletions

View File

@@ -1,4 +1,9 @@
<div class="pagination">
<a class="prev" href="page-{{prev}}.html">Previous Page</a>
<ul>
{{#page_links}}
<li><a href="{{link}}">{{label}}</a></li>
{{/page_links}}
</ul>
<a class="next" href="page-{{next}}.html">Next Page</a>
</div>

View File

@@ -3,14 +3,16 @@
<table id="threads">
<tr>
<th>Title</th>
<th>Poster</th>
<th>Poster</th>
<th>Date</th>
<th>Replies</th>
</tr>
{{#threads}}
<tr>
<td class="thread-subject"><a href="thread-{{id}}">{{subject}}</a></td>
<td class="thread-poster">{{poster_name}}</td>
<td class="thread-date">{{datetime}}</td>
<td class="replies">{{num_replies}}</td>
</tr>
{{/threads}}
</table>