Skip to main content

max / makenotwork

2.5 KB · 67 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" data-confirm="Stop tracking all threads?">
20 {% include "partials/csrf_input.html" %}
21 <button type="submit" class="btn-secondary">Stop tracking all</button>
22 </form>
23 {% endif %}
24 </div>
25 <div class="tracking-settings">
26 <label class="toggle-label">
27 <input type="checkbox" id="tracking-opt-out" class="toggle-checkbox">
28 <span>Disable local unread tracking</span>
29 </label>
30 <span class="text-muted-sm">(<a href="/about/tracking">How tracking works</a>)</span>
31 </div>
32
33 {% if threads.is_empty() %}
34 <div class="empty-state">You are not tracking any threads. Click "track" on a thread to follow it.</div>
35 {% else %}
36 <table class="data-table">
37 <thead>
38 <tr>
39 <th>Thread</th>
40 <th>Community</th>
41 <th class="col-replies">New</th>
42 </tr>
43 </thead>
44 <tbody>
45 {% for t in threads %}
46 <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 %}>
47 <td class="thread-title">
48 {% if t.has_mention %}<span class="badge badge-mention">@</span> {% endif %}
49 <a href="/p/{{ t.community_slug }}/{{ t.category_slug }}/{{ t.thread_id }}">{{ t.thread_title }}</a>
50 </td>
51 <td><a href="/p/{{ t.community_slug }}">{{ t.community_name }}</a></td>
52 <td class="col-replies">
53 {% if t.unread_count > 0 %}
54 <span class="badge badge-unread">{{ t.unread_count }} new</span>
55 {% else %}
56
57 {% endif %}
58 </td>
59 </tr>
60 {% endfor %}
61 </tbody>
62 </table>
63 {% include "partials/pagination.html" %}
64 {% endif %}
65 </div>
66 {% endblock %}
67