61 lines
1.6 KiB
HTML
61 lines
1.6 KiB
HTML
{{ define "forum" }}
|
|
|
|
<div class="container">
|
|
<div class="row container-fluid">
|
|
<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 }}
|
|
{{ $prevPage := (.Dec) }}
|
|
{{ $nextPage := (.Inc) }}
|
|
|
|
<a href="{{ $nextPage }}">prev</a>
|
|
|
|
{{ if (gt .PageNum 1) }}
|
|
<a href="{{ $prevPage }}">next</a>
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
</caption>
|
|
|
|
<thead>
|
|
<th scope="col">echo</th>
|
|
<th scope="col">thread</th>
|
|
<th scope="col">latest</th>
|
|
<th class="hideit" scope="col">address</th>
|
|
<th class="hideit" scope="col">date</th>
|
|
</thead>
|
|
<tbody>
|
|
{{ $page := . }}
|
|
{{ range $i, $p := .Posts }}
|
|
{{ if (eq $i 0) }}
|
|
<div class="text-white-50">
|
|
{{ ($page.GetDate $p.Date) }}
|
|
</div>
|
|
{{ end }}
|
|
<tr>
|
|
<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>
|
|
</tr>
|
|
{{ end }}
|
|
<tr>
|
|
<td>
|
|
<a href="?year=true">year</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|