Skip to main content

max / multithreaded

2.4 KB · 65 lines History Blame Raw
1 {% extends "base.html" %}
2
3 {% block title %}Tracked Threads — 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 Tracked Threads
15 </div>
16 <div class="page-header">
17 <h2>Tracked Threads</h2>
18 {% if !threads.is_empty() %}
19 <form method="post" action="/tracked/stop-all" onsubmit="return confirm('Stop tracking all threads?')">
20 <button type="submit" class="btn-secondary">Stop tracking all</button>
21 </form>
22 {% endif %}
23 </div>
24 <div class="tracking-settings">
25 <label class="toggle-label">
26 <input type="checkbox" id="tracking-opt-out" class="toggle-checkbox">
27 <span>Disable local unread tracking</span>
28 </label>
29 <span class="text-muted-sm">(<a href="/about/tracking">How tracking works</a>)</span>
30 </div>
31
32 {% if threads.is_empty() %}
33 <div class="empty-state">You are not tracking any threads. Click "track" on a thread to follow it.</div>
34 {% else %}
35 <table class="data-table">
36 <thead>
37 <tr>
38 <th>Thread</th>
39 <th>Community</th>
40 <th class="col-replies">New</th>
41 </tr>
42 </thead>
43 <tbody>
44 {% for t in threads %}
45 <tr{% if t.unread_count > 0 && t.has_mention %} class="unread mentioned"{% else if t.unread_count > 0 %} class="unread"{% else if t.has_mention %} class="mentioned"{% endif %}>
46 <td class="thread-title">
47 {% if t.has_mention %}<span class="badge badge-mention">@</span> {% endif %}
48 <a href="/p/{{ t.community_slug }}/{{ t.category_slug }}/{{ t.thread_id }}">{{ t.thread_title }}</a>
49 </td>
50 <td><a href="/p/{{ t.community_slug }}">{{ t.community_name }}</a></td>
51 <td class="col-replies">
52 {% if t.unread_count > 0 %}
53 <span class="badge badge-unread">{{ t.unread_count }} new</span>
54 {% else %}
55
56 {% endif %}
57 </td>
58 </tr>
59 {% endfor %}
60 </tbody>
61 </table>
62 {% endif %}
63 </div>
64 {% endblock %}
65