2021-05-03 14:51:07 +00:00
|
|
|
{{ template "base.html" . }}
|
|
|
|
|
|
|
|
{{ define "content" }}
|
|
|
|
<div class="content-block">
|
2021-07-30 03:40:47 +00:00
|
|
|
{{ range .Subforums }}
|
2021-09-09 02:51:43 +00:00
|
|
|
<div class="mv3">
|
2021-05-03 23:59:43 +00:00
|
|
|
<h2 class="ma0 ph3 pb2">
|
|
|
|
<a href="{{ .Url }}">
|
|
|
|
{{ .Name }} »<br/>
|
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
{{ range .Threads }}
|
|
|
|
{{ template "thread_list_item.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ $more := sub .TotalThreads 3 }}
|
|
|
|
{{ if gt $more 0 }}
|
|
|
|
<div class="ph3 pv1">
|
|
|
|
<a class="title" href="{{ .Url }}">{{ $more }} more »</a>
|
|
|
|
</div>
|
2021-05-03 22:45:17 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2021-05-03 23:59:43 +00:00
|
|
|
{{ end }}
|
|
|
|
<div class="optionbar">
|
2021-07-30 03:40:47 +00:00
|
|
|
{{ template "subforum_options" . }}
|
2021-05-03 22:45:17 +00:00
|
|
|
</div>
|
2021-05-03 14:51:07 +00:00
|
|
|
{{ range .Threads }}
|
|
|
|
{{ template "thread_list_item.html" . }}
|
|
|
|
{{ end }}
|
2021-05-03 23:59:43 +00:00
|
|
|
<div class="optionbar bottom">
|
2021-07-30 03:40:47 +00:00
|
|
|
{{ template "subforum_options" . }}
|
2021-05-03 23:59:43 +00:00
|
|
|
</div>
|
2021-05-03 14:51:07 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-05-03 23:59:43 +00:00
|
|
|
|
2021-07-30 03:40:47 +00:00
|
|
|
{{ define "subforum_options" }}
|
2021-05-03 23:59:43 +00:00
|
|
|
<div class="options">
|
|
|
|
{{ if .User }}
|
2021-07-23 19:00:37 +00:00
|
|
|
<a class="button new-thread" href="{{ .NewThreadUrl }}"><span class="big pr1">+</span> New Thread</a>
|
|
|
|
<form method="POST" action="{{ .MarkReadUrl }}">
|
|
|
|
{{ csrftoken .Session }}
|
|
|
|
<button type="submit"><span class="big pr1">✓</span> Mark threads here as read</button>
|
|
|
|
</form>
|
2021-05-03 23:59:43 +00:00
|
|
|
{{ else }}
|
2021-05-11 22:53:23 +00:00
|
|
|
<a class="button" href="{{ .LoginPageUrl }}">Log in to post a new thread</a>
|
2021-05-03 23:59:43 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<div class="options">
|
|
|
|
{{ template "pagination.html" .Pagination }}
|
|
|
|
</div>
|
2021-05-04 12:02:33 +00:00
|
|
|
{{ end }}
|