2021-03-26 11:11:14 +03:00
|
|
|
{{ define "forum" }}
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="row container-fluid">
|
2021-04-02 17:11:12 +03:00
|
|
|
<table class="table table-responsive-sm table-borderless dynamic-bg dynamic-post-title dynamic-post dynamic-opacity-95 rounded">
|
|
|
|
|
|
|
|
<caption class="dynamic-bg dynamic-opacity-95 rounded text-center">
|
|
|
|
{{ if .ShowPaginator }}
|
2021-03-30 19:47:25 +03:00
|
|
|
{{ $prevPage := (.Dec) }}
|
|
|
|
{{ $nextPage := (.Inc) }}
|
|
|
|
|
2021-04-02 17:11:12 +03:00
|
|
|
<a href="{{ $nextPage }}">prev</a>
|
|
|
|
|
2021-03-30 19:47:25 +03:00
|
|
|
{{ if (gt .PageNum 1) }}
|
2021-04-02 17:11:12 +03:00
|
|
|
<a href="{{ $prevPage }}">next</a>
|
2021-03-30 19:47:25 +03:00
|
|
|
{{ end }}
|
|
|
|
|
2021-04-02 17:11:12 +03:00
|
|
|
{{ end }}
|
2021-03-30 19:47:25 +03:00
|
|
|
</caption>
|
2021-04-02 17:11:12 +03:00
|
|
|
|
2021-03-26 11:11:14 +03:00
|
|
|
<thead>
|
|
|
|
<th scope="col">echo</th>
|
|
|
|
<th scope="col">thread</th>
|
|
|
|
<th scope="col">latest</th>
|
2021-04-02 17:11:12 +03:00
|
|
|
<th class="hideit" scope="col">address</th>
|
|
|
|
<th class="hideit" scope="col">date</th>
|
2021-03-26 11:11:14 +03:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-03-30 19:47:25 +03:00
|
|
|
{{ $page := . }}
|
2021-04-02 17:11:12 +03:00
|
|
|
{{ range $i, $p := .Posts }}
|
|
|
|
{{ if (eq $i 0) }}
|
|
|
|
<div class="text-white-50">
|
|
|
|
{{ ($page.GetDate $p.Date) }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-03-26 11:11:14 +03:00
|
|
|
<tr>
|
2021-04-02 17:11:12 +03:00
|
|
|
<td>
|
|
|
|
<a
|
|
|
|
class="text-white-50"
|
|
|
|
style="text-decoration:none;"
|
|
|
|
href="/echo/{{ .Echo }}/page/1">
|
|
|
|
{{ $p.Echo }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td><strong><a href="/thread/{{ .TopicID }}">{{ $p.Subg }}</a></strong></td>
|
|
|
|
<td><strong>{{ $p.Author }}</strong></td>
|
|
|
|
<td class="hideit">{{ $p.Address }}</td>
|
|
|
|
<td class="hideit">{{ ($page.GetDate $p.Date) }}</td>
|
2021-03-26 11:11:14 +03:00
|
|
|
</tr>
|
|
|
|
{{ end }}
|
2021-04-02 17:11:12 +03:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="?year=true">year</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2021-03-26 11:11:14 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|