Skip to main content

max / makenotwork

1.7 KB · 53 lines History Blame Raw
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>{% if viewing_archived %}Archived forums{% else %}Forums{% endif %}</h1>
13 <div class="page-header-actions">
14 {% if viewing_archived %}
15 <a href="/">Back to active forums</a>
16 {% else %}
17 <a href="/?filter=archived">View archived</a>
18 {% endif %}
19 </div>
20 </div>
21 {% if communities.is_empty() %}
22 <div class="empty-state">
23 {% if viewing_archived %}No archived communities.{% else %}No communities yet.{% endif %}
24 </div>
25 {% else %}
26 <table class="directory-table">
27 <thead>
28 <tr>
29 <th>Community</th>
30 <th class="col-type">Categories</th>
31 <th class="col-items">Threads</th>
32 </tr>
33 </thead>
34 <tbody>
35 {% for c in communities %}
36 <tr>
37 <td>
38 <div class="directory-name"><a href="/p/{{ c.slug }}">{{ c.name }}</a></div>
39 {% if let Some(desc) = c.description %}
40 <div class="directory-desc">{{ desc }}</div>
41 {% endif %}
42 </td>
43 <td class="col-type">{{ c.category_count }}</td>
44 <td class="col-items">{{ c.thread_count }}</td>
45 </tr>
46 {% endfor %}
47 </tbody>
48 </table>
49 {% include "partials/pagination.html" %}
50 {% endif %}
51 </div>
52 {% endblock %}
53