Skip to main content

max / makenotwork

2.1 KB · 58 lines History Blame Raw
1 {% extends "base.html" %}
2
3 {% block title %}Deleted Threads — {{ community_name }} — Multithreaded{% endblock %}
4
5 {% block head %}<meta name="robots" content="noindex">{% endblock %}
6
7 {% block header %}{% include "partials/site_header.html" %}{% endblock %}
8
9 {% block content %}
10 <div class="container">
11 <div class="breadcrumb">
12 <a href="/">Forums</a>
13 <span class="sep">/</span>
14 <a href="/p/{{ community_slug }}">{{ community_name }}</a>
15 <span class="sep">/</span>
16 <a href="/p/{{ community_slug }}/moderation">Moderation</a>
17 <span class="sep">/</span>
18 Deleted Threads
19 </div>
20 <div class="page-header">
21 <h1>Deleted Threads</h1>
22 </div>
23
24 {% if threads.is_empty() %}
25 <div class="empty-state">No deleted threads.</div>
26 {% else %}
27 {% if threads_truncated %}
28 <p class="empty-state">Showing the most recently deleted threads only. Restore some to reveal older ones.</p>
29 {% endif %}
30 <table class="data-table">
31 <thead>
32 <tr>
33 <th>Thread</th>
34 <th>Author</th>
35 <th class="col-activity">Deleted</th>
36 <th></th>
37 </tr>
38 </thead>
39 <tbody>
40 {% for thread in threads %}
41 <tr>
42 <td>{{ thread.title }}</td>
43 <td class="settings-mono">{{ thread.author_username }}</td>
44 <td class="col-activity settings-mono">{{ thread.deleted }}</td>
45 <td>
46 <form method="post" action="/p/{{ community_slug }}/moderation/threads/{{ thread.thread_id }}/restore" class="form-inline"{% if thread.op_removed %} data-confirm="Restore this thread? Its opening post was removed with it and will become visible again."{% else %} data-confirm="Restore this thread?"{% endif %}>
47 {% include "partials/csrf_input.html" %}
48 <button type="submit" class="post-action-link">restore</button>
49 </form>
50 </td>
51 </tr>
52 {% endfor %}
53 </tbody>
54 </table>
55 {% endif %}
56 </div>
57 {% endblock %}
58