Show More
@@ -1,206 +1,206 b'' | |||
|
1 | 1 | {% extends "boards/base.html" %} |
|
2 | 2 | |
|
3 | 3 | {% load i18n %} |
|
4 | 4 | {% load markup %} |
|
5 | 5 | {% load cache %} |
|
6 | 6 | |
|
7 | 7 | {% block head %} |
|
8 | 8 | {% if tag %} |
|
9 | 9 | <title>Neboard - {{ tag.name }}</title> |
|
10 | 10 | {% else %} |
|
11 | 11 | <title>Neboard</title> |
|
12 | 12 | {% endif %} |
|
13 | 13 | {% endblock %} |
|
14 | 14 | |
|
15 | 15 | {% block content %} |
|
16 | 16 | |
|
17 | 17 | {% if tag %} |
|
18 | 18 | <div class="tag_info"> |
|
19 | 19 | <h2>{% trans 'Tag: ' %}{{ tag.name }} |
|
20 | 20 | {% if tag in user.fav_tags.all %} |
|
21 | 21 | <a href="{% url 'tag_unsubscribe' tag.name %}?next={{ request.path }}" |
|
22 | 22 | class="fav">★</a> |
|
23 | 23 | {% else %} |
|
24 | 24 | <a href="{% url 'tag_subscribe' tag.name %}?next={{ request.path }}" |
|
25 | 25 | class="not_fav">★</a> |
|
26 | 26 | {% endif %} |
|
27 | 27 | </h2> |
|
28 | 28 | </div> |
|
29 | 29 | {% endif %} |
|
30 | 30 | |
|
31 | 31 | {% if threads %} |
|
32 | 32 | {% for thread in threads %} |
|
33 | 33 | <div class="thread"> |
|
34 | 34 | {% if thread.bumpable %} |
|
35 | 35 | <div class="post" id="{{ thread.thread.id }}"> |
|
36 | 36 | {% else %} |
|
37 | 37 | <div class="post dead_post" id="{{ thread.thread.id }}"> |
|
38 | 38 | {% endif %} |
|
39 | 39 | {% if thread.thread.image %} |
|
40 | 40 | <div class="image"> |
|
41 | 41 | <a class="thumb" |
|
42 | 42 | href="{{ thread.thread.image.url }}"><img |
|
43 | 43 | src="{{ thread.thread.image.url_200x150 }}" |
|
44 | 44 | alt="{{ thread.thread.id }}" |
|
45 | 45 | data-width="{{ thread.thread.image_width }}" |
|
46 | 46 | data-height="{{ thread.thread.image_height }}" /> |
|
47 | 47 | </a> |
|
48 | 48 | </div> |
|
49 | 49 | {% endif %} |
|
50 | 50 | <div class="message"> |
|
51 | 51 | <div class="post-info"> |
|
52 | 52 | <span class="title">{{ thread.thread.title }}</span> |
|
53 | 53 | <a class="post_id" href="{% url 'thread' thread.thread.id %}" |
|
54 | 54 | >(#{{ thread.thread.id }})</a> |
|
55 | 55 | [{{ thread.thread.pub_time }}] |
|
56 | 56 | [<a class="link" href="{% url 'thread' thread.thread.id %}#form" |
|
57 | 57 | >{% trans "Reply" %}</a>] |
|
58 | 58 | |
|
59 | 59 | {% if moderator %} |
|
60 | 60 | <span class="moderator_info"> |
|
61 | 61 | [<a href="{% url 'delete' post_id=thread.thread.id %}?next={{ request.path }}" |
|
62 | 62 | >{% trans 'Delete' %}</a>] |
|
63 | 63 | ({{ thread.thread.poster_ip }}) |
|
64 | 64 | [<a href="{% url 'ban' post_id=thread.thread.id %}?next={{ request.path }}" |
|
65 | 65 | >{% trans 'Ban IP' %}</a>] |
|
66 | 66 | </span> |
|
67 | 67 | {% endif %} |
|
68 | 68 | </div> |
|
69 | 69 | {% autoescape off %} |
|
70 | 70 | {{ thread.thread.text.rendered|truncatewords_html:50 }} |
|
71 | 71 | {% endautoescape %} |
|
72 | 72 | </div> |
|
73 | 73 | <div class="metadata"> |
|
74 | 74 | {{ thread.thread.get_reply_count }} {% trans 'replies' %}, |
|
75 | 75 | {{ thread.thread.get_images_count }} {% trans 'images' %}. |
|
76 | 76 | {% if thread.thread.tags %} |
|
77 | 77 | <span class="tags">{% trans 'Tags' %}: |
|
78 | 78 | {% for tag in thread.thread.tags.all %} |
|
79 | 79 | <a class="tag" href=" |
|
80 | 80 | {% url 'tag' tag_name=tag.name %}"> |
|
81 | 81 | {{ tag.name }}</a> |
|
82 | 82 | {% endfor %} |
|
83 | 83 | </span> |
|
84 | 84 | {% endif %} |
|
85 | 85 | </div> |
|
86 | 86 | </div> |
|
87 | 87 | {% if thread.thread.get_last_replies.exists %} |
|
88 | 88 | <div class="last-replies"> |
|
89 | 89 | {% for post in thread.thread.get_last_replies %} |
|
90 | 90 | {% if thread.bumpable %} |
|
91 | 91 | <div class="post" id="{{ post.id }}"> |
|
92 | 92 | {% else %} |
|
93 | 93 | <div class="post dead_post" id="{{ post.id }}"> |
|
94 | 94 | {% endif %} |
|
95 | 95 | {% if post.image %} |
|
96 | 96 | <div class="image"> |
|
97 | 97 | <a class="thumb" |
|
98 | 98 | href="{{ post.image.url }}"><img |
|
99 | 99 | src=" {{ post.image.url_200x150 }}" |
|
100 | 100 | alt="{{ post.id }}" |
|
101 | 101 | data-width="{{ post.image_width }}" |
|
102 | 102 | data-height="{{ post.image_height }}"/> |
|
103 | 103 | </a> |
|
104 | 104 | </div> |
|
105 | 105 | {% endif %} |
|
106 | 106 | <div class="message"> |
|
107 | 107 | <div class="post-info"> |
|
108 | 108 | <span class="title">{{ post.title }}</span> |
|
109 | 109 | <a class="post_id" href=" |
|
110 | 110 | {% url 'thread' thread.thread.id %}#{{ post.id }}"> |
|
111 | 111 | (#{{ post.id }})</a> |
|
112 | 112 | [{{ post.pub_time }}] |
|
113 | 113 | </div> |
|
114 | 114 | {% autoescape off %} |
|
115 | 115 | {{ post.text.rendered|truncatewords_html:50 }} |
|
116 | 116 | {% endautoescape %} |
|
117 | 117 | </div> |
|
118 | 118 | </div> |
|
119 | 119 | {% endfor %} |
|
120 | 120 | </div> |
|
121 | 121 | {% endif %} |
|
122 | 122 | </div> |
|
123 | 123 | {% endfor %} |
|
124 | 124 | {% else %} |
|
125 | 125 | <div class="post"> |
|
126 | 126 | {% trans 'No threads exist. Create the first one!' %}</div> |
|
127 | 127 | {% endif %} |
|
128 | 128 | |
|
129 | 129 | <form enctype="multipart/form-data" method="post">{% csrf_token %} |
|
130 | 130 | <div class="post-form-w"> |
|
131 | 131 | |
|
132 | 132 | <div class="form-title">{% trans "Create new thread" %}</div> |
|
133 | 133 | <div class="post-form"> |
|
134 | 134 | <div class="form-row"> |
|
135 | 135 | <div class="form-label">{% trans 'Title' %}</div> |
|
136 | 136 | <div class="form-input">{{ form.title }}</div> |
|
137 | 137 | <div class="form-errors">{{ form.title.errors }}</div> |
|
138 | 138 | </div> |
|
139 | 139 | <div class="form-row"> |
|
140 | 140 | <div class="form-label">{% trans 'Formatting' %}</div> |
|
141 | 141 | <div class="form-input" id="mark_panel"> |
|
142 | 142 | <span class="mark_btn" id="quote"><span class="quote">>{% trans 'quote' %}</span></span> |
|
143 | 143 | <span class="mark_btn" id="italic"><i>{% trans 'italic' %}</i></span> |
|
144 | 144 | <span class="mark_btn" id="bold"><b>{% trans 'bold' %}</b></span> |
|
145 | 145 | <span class="mark_btn" id="spoiler"><span class="spoiler">{% trans 'spoiler' %}</span></span> |
|
146 | 146 | <span class="mark_btn" id="comment"><span class="comment">// {% trans 'comment' %}</span></span> |
|
147 | 147 | </div> |
|
148 | 148 | </div> |
|
149 | 149 | <div class="form-row"> |
|
150 | 150 | <div class="form-label">{% trans 'Text' %}</div> |
|
151 | 151 | <div class="form-input">{{ form.text }}</div> |
|
152 | 152 | <div class="form-errors">{{ form.text.errors }}</div> |
|
153 | 153 | </div> |
|
154 | 154 | <div class="form-row"> |
|
155 | 155 | <div class="form-label">{% trans 'Image' %}</div> |
|
156 | 156 | <div class="form-input">{{ form.image }}</div> |
|
157 | 157 | <div class="form-errors">{{ form.image.errors }}</div> |
|
158 | 158 | </div> |
|
159 | 159 | <div class="form-row"> |
|
160 | 160 | <div class="form-label">{% trans 'Tags' %}</div> |
|
161 | 161 | <div class="form-input">{{ form.tags }}</div> |
|
162 | 162 | <div class="form-errors">{{ form.tags.errors }}</div> |
|
163 | 163 | </div> |
|
164 | 164 | <div class="form-row form-email"> |
|
165 | 165 | <div class="form-label">{% trans 'e-mail' %}</div> |
|
166 | 166 | <div class="form-input">{{ form.email }}</div> |
|
167 | 167 | <div class="form-errors">{{ form.email.errors }}</div> |
|
168 | 168 | </div> |
|
169 | 169 | <div class="form-row"> |
|
170 | 170 | {{ form.captcha }} |
|
171 | 171 | <div class="form-errors">{{ form.captcha.errors }}</div> |
|
172 | 172 | </div> |
|
173 | 173 | <div class="form-row"> |
|
174 | 174 | <div class="form-errors">{{ form.other.errors }}</div> |
|
175 | 175 | </div> |
|
176 | 176 | </div> |
|
177 | 177 | <div class="form-submit"> |
|
178 | 178 | <input type="submit" value="{% trans "Post" %}"/></div> |
|
179 | 179 | <div> |
|
180 | 180 | {% trans 'Tags must be delimited by spaces. Text or image is required.' %} |
|
181 | 181 | </div> |
|
182 | 182 | <div><a href="{% url "staticpage" name="help" %}"> |
|
183 | 183 | {% trans 'Text syntax' %}</a></div> |
|
184 | 184 | </div> |
|
185 | 185 | </form> |
|
186 | 186 | |
|
187 | 187 | {% endblock %} |
|
188 | 188 | |
|
189 | 189 | {% block metapanel %} |
|
190 | 190 | |
|
191 | 191 | <span class="metapanel"> |
|
192 |
<b><a href="{% url "authors" %}">Neboard</a> 1. |
|
|
192 | <b><a href="{% url "authors" %}">Neboard</a> 1.3</b> | |
|
193 | 193 | {% trans "Pages:" %} |
|
194 | 194 | {% for page in pages %} |
|
195 | 195 | [<a href=" |
|
196 | 196 | {% if tag %} |
|
197 | 197 | {% url "tag" tag_name=tag page=page %} |
|
198 | 198 | {% else %} |
|
199 | 199 | {% url "index" page=page %} |
|
200 | 200 | {% endif %} |
|
201 | 201 | ">{{ page }}</a>] |
|
202 | 202 | {% endfor %} |
|
203 | 203 | [<a href="rss/">RSS</a>] |
|
204 | 204 | </span> |
|
205 | 205 | |
|
206 | 206 | {% endblock %} |
@@ -1,21 +1,21 b'' | |||
|
1 | 1 | = Features = |
|
2 | 2 | [DONE] Connecting tags to each other |
|
3 | [DONE] Connect posts to the replies (in messages), get rid of the JS reply map | |
|
3 | 4 | |
|
4 | 5 | [NOT STARTED] Tree view (JS) |
|
5 | 6 | [NOT STARTED] Adding tags to images filename |
|
6 | 7 | [NOT STARTED] Federative network for s2s communication |
|
7 | 8 | [NOT STARTED] XMPP gate |
|
8 | 9 | [NOT STARTED] Bitmessage gate |
|
9 | 10 | [NOT STARTED] Notification engine |
|
10 | 11 | [NOT STARTED] Javascript disabling engine |
|
11 | 12 | [NOT STARTED] Thread autoupdate (JS + API) |
|
12 | 13 | [NOT STARTED] Better django admin pages to simplify admin operations |
|
13 | 14 | [NOT STARTED] Regen script to update all posts |
|
14 | [NOT STARTED] Connect posts to the replies (in messages), get rid of the JS reply map | |
|
15 | 15 | [NOT STARTED] Group tags by first letter in all tags list |
|
16 | 16 | [NOT STARTED] Show board speed in the lower panel (posts per day) |
|
17 | 17 | |
|
18 | 18 | = Bugs = |
|
19 | 19 | [DONE] Fix bug with creating threads from tag view |
|
20 | 20 | |
|
21 | 21 | [NOT STARTED] Quote characters within quote causes quote parsing to fail |
General Comments 0
You need to be logged in to leave comments.
Login now