Skip to main content

max / makenotwork

3.7 KB · 83 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 {% include "partials/csrf_input.html" %}
44 <div class="form-group">
45 <label for="state">State</label>
46 <select id="state" name="state">
47 <option value="active" {% if current_state == "active" %}selected{% endif %}>Active — normal operation</option>
48 <option value="restricted" {% if current_state == "restricted" %}selected{% endif %}>Restricted — only mods can start new threads</option>
49 <option value="frozen" {% if current_state == "frozen" %}selected{% endif %}>Frozen — read-only for non-mods</option>
50 <option value="archived" {% if current_state == "archived" %}selected{% endif %}>Archived — frozen + hidden from default listing</option>
51 </select>
52 </div>
53 <div class="form-actions">
54 <button type="submit" class="primary">Update state</button>
55 </div>
56 </form>
57 </div>
58
59 <div class="settings-section danger-zone">
60 <h3>Clean slate</h3>
61 <p class="form-help">
62 Delete every thread, post, footnote, endorsement, and flag in this community.
63 Settings, categories, members, and bans are preserved. A pinned, locked notice
64 thread is posted in the first category recording who reset the forum and when.
65 </p>
66 <p class="form-help">
67 <strong>This cannot be undone.</strong> To confirm, type the community slug
68 <code>{{ community_slug }}</code> in the box below.
69 </p>
70 <form method="post" action="/_admin/communities/{{ community_slug }}/clean-slate" class="form-container">
71 {% include "partials/csrf_input.html" %}
72 <div class="form-group">
73 <label for="confirm">Confirmation</label>
74 <input type="text" id="confirm" name="confirm" placeholder="{{ community_slug }}" autocomplete="off" required>
75 </div>
76 <div class="form-actions">
77 <button type="submit" class="danger">Wipe community threads</button>
78 </div>
79 </form>
80 </div>
81 </div>
82 {% endblock %}
83