2021-03-26 11:11:14 +03:00
|
|
|
{{ define "forum" }}
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="row container-fluid">
|
2021-03-30 19:47:25 +03:00
|
|
|
<table class="table table-sm border-0 dynamic-bg dynamic-post-title dynamic-post dynamic-opacity-95 rounded">
|
|
|
|
<caption class="dynamic-bg dynamic-opacity-95 rounded">
|
|
|
|
{{ $prevPage := (.Dec) }}
|
|
|
|
{{ $nextPage := (.Inc) }}
|
|
|
|
|
|
|
|
{{ if (gt .PageNum 1) }}
|
|
|
|
<a href="{{ $prevPage }}">prev</a>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<a href="{{ $nextPage }}">next</a>
|
|
|
|
</caption>
|
2021-03-26 11:11:14 +03:00
|
|
|
<thead>
|
|
|
|
<th scope="col">echo</th>
|
|
|
|
<th scope="col">thread</th>
|
|
|
|
<th scope="col">latest</th>
|
|
|
|
<th scope="col">address</th>
|
|
|
|
<th scope="col">date</th>
|
|
|
|
<!-- <th scope="col">comments</th> -->
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-03-30 19:47:25 +03:00
|
|
|
{{ $page := . }}
|
2021-03-26 11:11:14 +03:00
|
|
|
{{ range .Posts }}
|
|
|
|
<tr>
|
2021-03-30 19:47:25 +03:00
|
|
|
<td><a class="text-white-50" href="/echo/{{ .Echo }}/page/1">{{ .Echo }}</a></td>
|
|
|
|
<td><strong><a href="/thread/{{ .TopicID }}">{{ .Subg }}</a></strong></td>
|
2021-03-26 11:11:14 +03:00
|
|
|
<td>{{ .Author }}</td>
|
|
|
|
<td>{{ .Address }}</td>
|
2021-03-30 19:47:25 +03:00
|
|
|
<td>{{ ($page.GetDate .Date) }}</td>
|
2021-03-26 11:11:14 +03:00
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|