{{ template "base.html" . }} {{ define "content" }}
{{ range .Subcategories }}

{{ .Name }} »

{{ range .Threads }} {{ template "thread_list_item.html" . }} {{ end }} {{ $more := sub .TotalThreads 3 }} {{ if gt $more 0 }} {{ end }}
{{ end }}
{{ template "forum_category_options" . }}
{{ range .Threads }} {{ template "thread_list_item.html" . }} {{ end }}
{{ template "forum_category_options" . }}
{{ end }} {{ define "forum_category_options" }}
{{ if .User }} + New Thread {{/* TODO(asaf): Mark read should probably be a POST, since it's destructive and we would probably want CSRF for it */}} Mark threads here as read {{ else }} Log in to post a new thread {{ end }}
{{ template "pagination.html" .Pagination }}
{{ end }}