Skip to main content

max / makenotwork

2.4 KB · 64 lines History Blame Raw
1 {% extends "base.html" %}
2
3 {% block title %}Account — 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 <h2 class="section-heading">Account</h2>
12
13 <div class="settings-section">
14 <h3>Signature</h3>
15 <p class="form-help">
16 A short markdown note rendered below every post you make. Fan+ subscribers may use
17 image embeds; otherwise text and links only.
18 </p>
19
20 {% if has_plus %}
21 <form method="post" action="/account/signature" class="form-container">
22 {% include "partials/csrf_input.html" %}
23 <div class="form-group">
24 <label for="signature">Signature (markdown, up to 1024 characters)</label>
25 <textarea id="signature" name="signature" class="textarea-medium" maxlength="1024">{{ signature_markdown.as_deref().unwrap_or("") }}</textarea>
26 </div>
27 <div class="form-actions">
28 <button type="submit" class="primary">Save signature</button>
29 {% if signature_markdown.is_some() %}
30 <button type="submit" name="clear" value="1" class="secondary">Clear signature</button>
31 {% endif %}
32 </div>
33 </form>
34
35 {% if let Some(html) = signature_html %}
36 <h4 class="subsection-heading">Preview</h4>
37 <div class="post-signature">
38 {{ html|safe }}
39 </div>
40 {% endif %}
41 {% else %}
42 <div class="form-help">
43 Signatures are a Fan+ feature. <a href="{{ mnw_base_url }}/fan-plus">Learn more</a>.
44 </div>
45 {% endif %}
46 </div>
47
48 <div class="settings-section">
49 <h3>Status</h3>
50 <ul class="account-status">
51 <li>Fan+ subscription: <strong>{% if fan_plus %}active{% else %}inactive{% endif %}</strong></li>
52 <li>+ perks available: <strong>{% if has_plus %}yes{% else %}no{% endif %}</strong></li>
53 </ul>
54 <form method="post" action="/auth/refresh" class="form-inline">
55 {% include "partials/csrf_input.html" %}
56 <button type="submit" class="secondary">Refresh from MNW</button>
57 </form>
58 <span class="form-help">
59 Hit refresh after subscribing or upgrading on makenot.work to see changes here.
60 </span>
61 </div>
62 </div>
63 {% endblock %}
64