Skip to main content

max / makenotwork

3.6 KB · 81 lines History Blame Raw
1 {% extends "base.html" %}
2
3 {% block title %}{{ community_name }} — Admin — 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="/_admin">Admin</a>
13 <span class="sep">/</span>
14 <a href="/p/{{ community_slug }}">{{ community_name }}</a>
15 </div>
16 <h2 class="section-heading">Community administration — {{ community_name }}</h2>
17
18 <div class="settings-section">
19 <h3>Overview</h3>
20 <ul class="account-status">
21 <li>Slug: <strong>{{ community_slug }}</strong></li>
22 <li>State: <strong>{{ current_state }}</strong></li>
23 <li>Suspension:
24 {% if is_suspended %}
25 <strong>suspended</strong>
26 {% if let Some(reason) = suspension_reason %} — {{ reason }}{% endif %}
27 {% else %}
28 none
29 {% endif %}
30 </li>
31 <li>Threads (current): <strong>{{ thread_count }}</strong></li>
32 <li>Members: <strong>{{ member_count }}</strong></li>
33 </ul>
34 </div>
35
36 <div class="settings-section">
37 <h3>Moderation state</h3>
38 <p class="form-help">
39 Change the community's state machine. Mods can also do this from the community
40 settings page; admin changes are logged the same way.
41 </p>
42 <form method="post" action="/p/{{ community_slug }}/settings/state" class="form-container">
43 <div class="form-group">
44 <label for="state">State</label>
45 <select id="state" name="state">
46 <option value="active" {% if current_state == "active" %}selected{% endif %}>Active — normal operation</option>
47 <option value="restricted" {% if current_state == "restricted" %}selected{% endif %}>Restricted — only mods can start new threads</option>
48 <option value="frozen" {% if current_state == "frozen" %}selected{% endif %}>Frozen — read-only for non-mods</option>
49 <option value="archived" {% if current_state == "archived" %}selected{% endif %}>Archived — frozen + hidden from default listing</option>
50 </select>
51 </div>
52 <div class="form-actions">
53 <button type="submit" class="primary">Update state</button>
54 </div>
55 </form>
56 </div>
57
58 <div class="settings-section danger-zone">
59 <h3>Clean slate</h3>
60 <p class="form-help">
61 Delete every thread, post, footnote, endorsement, and flag in this community.
62 Settings, categories, members, and bans are preserved. A pinned, locked notice
63 thread is posted in the first category recording who reset the forum and when.
64 </p>
65 <p class="form-help">
66 <strong>This cannot be undone.</strong> To confirm, type the community slug
67 <code>{{ community_slug }}</code> in the box below.
68 </p>
69 <form method="post" action="/_admin/communities/{{ community_slug }}/clean-slate" class="form-container">
70 <div class="form-group">
71 <label for="confirm">Confirmation</label>
72 <input type="text" id="confirm" name="confirm" placeholder="{{ community_slug }}" autocomplete="off" required>
73 </div>
74 <div class="form-actions">
75 <button type="submit" class="danger">Wipe community threads</button>
76 </div>
77 </form>
78 </div>
79 </div>
80 {% endblock %}
81