| 1 |
{% extends "base.html" %} |
| 2 |
|
| 3 |
{% block title %}Multithreaded{% endblock %} |
| 4 |
|
| 5 |
{% block head %}<meta name="description" content="Community forums.">{% endblock %} |
| 6 |
|
| 7 |
{% block header %}{% include "partials/site_header.html" %}{% endblock %} |
| 8 |
|
| 9 |
{% block content %} |
| 10 |
<div class="container"> |
| 11 |
<div class="page-header"> |
| 12 |
<h1>Forums</h1> |
| 13 |
</div> |
| 14 |
{% if communities.is_empty() %} |
| 15 |
<div class="empty-state">No communities yet.</div> |
| 16 |
{% else %} |
| 17 |
<table class="directory-table"> |
| 18 |
<thead> |
| 19 |
<tr> |
| 20 |
<th>Community</th> |
| 21 |
<th class="col-type">Categories</th> |
| 22 |
<th class="col-items">Threads</th> |
| 23 |
</tr> |
| 24 |
</thead> |
| 25 |
<tbody> |
| 26 |
{% for c in communities %} |
| 27 |
<tr> |
| 28 |
<td> |
| 29 |
<div class="directory-name"><a href="/p/{{ c.slug }}">{{ c.name }}</a></div> |
| 30 |
{% if let Some(desc) = c.description %} |
| 31 |
<div class="directory-desc">{{ desc }}</div> |
| 32 |
{% endif %} |
| 33 |
</td> |
| 34 |
<td class="col-type">{{ c.category_count }}</td> |
| 35 |
<td class="col-items">{{ c.thread_count }}</td> |
| 36 |
</tr> |
| 37 |
{% endfor %} |
| 38 |
</tbody> |
| 39 |
</table> |
| 40 |
{% include "partials/pagination.html" %} |
| 41 |
{% endif %} |
| 42 |
</div> |
| 43 |
{% endblock %} |
| 44 |
|