##// END OF EJS Templates
Added changelog file and version name
neko259 -
r454:151b4b1d 1.5-dev
parent child Browse files
Show More
@@ -0,0 +1,5 b''
1 # 1.5 Aker #
2 * Saving image previews size. No space will be shown below images in some
3 styles.
4 * Showing notification in page title when new posts are loaded into the open
5 thread. No newline at end of file
@@ -1,248 +1,248 b''
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4 {% load cache %}
4 {% load cache %}
5 {% load board %}
5 {% load board %}
6 {% load static %}
6 {% load static %}
7
7
8 {% block head %}
8 {% block head %}
9 {% if tag %}
9 {% if tag %}
10 <title>Neboard - {{ tag.name }}</title>
10 <title>Neboard - {{ tag.name }}</title>
11 {% else %}
11 {% else %}
12 <title>Neboard</title>
12 <title>Neboard</title>
13 {% endif %}
13 {% endif %}
14
14
15 {% if prev_page %}
15 {% if prev_page %}
16 <link rel="next" href="
16 <link rel="next" href="
17 {% if tag %}
17 {% if tag %}
18 {% url "tag" tag_name=tag page=prev_page %}
18 {% url "tag" tag_name=tag page=prev_page %}
19 {% else %}
19 {% else %}
20 {% url "index" page=prev_page %}
20 {% url "index" page=prev_page %}
21 {% endif %}
21 {% endif %}
22 " />
22 " />
23 {% endif %}
23 {% endif %}
24 {% if next_page %}
24 {% if next_page %}
25 <link rel="next" href="
25 <link rel="next" href="
26 {% if tag %}
26 {% if tag %}
27 {% url "tag" tag_name=tag page=next_page %}
27 {% url "tag" tag_name=tag page=next_page %}
28 {% else %}
28 {% else %}
29 {% url "index" page=next_page %}
29 {% url "index" page=next_page %}
30 {% endif %}
30 {% endif %}
31 " />
31 " />
32 {% endif %}
32 {% endif %}
33
33
34 {% endblock %}
34 {% endblock %}
35
35
36 {% block content %}
36 {% block content %}
37
37
38 {% get_current_language as LANGUAGE_CODE %}
38 {% get_current_language as LANGUAGE_CODE %}
39
39
40 {% if tag %}
40 {% if tag %}
41 <div class="tag_info">
41 <div class="tag_info">
42 <h2>
42 <h2>
43 {% if tag in user.fav_tags.all %}
43 {% if tag in user.fav_tags.all %}
44 <a href="{% url 'tag_unsubscribe' tag.name %}?next={{ request.path }}"
44 <a href="{% url 'tag_unsubscribe' tag.name %}?next={{ request.path }}"
45 class="fav">β˜…</a>
45 class="fav">β˜…</a>
46 {% else %}
46 {% else %}
47 <a href="{% url 'tag_subscribe' tag.name %}?next={{ request.path }}"
47 <a href="{% url 'tag_subscribe' tag.name %}?next={{ request.path }}"
48 class="not_fav">β˜…</a>
48 class="not_fav">β˜…</a>
49 {% endif %}
49 {% endif %}
50 #{{ tag.name }}
50 #{{ tag.name }}
51 </h2>
51 </h2>
52 </div>
52 </div>
53 {% endif %}
53 {% endif %}
54
54
55 {% if threads %}
55 {% if threads %}
56 {% if prev_page %}
56 {% if prev_page %}
57 <div class="page_link">
57 <div class="page_link">
58 <a href="
58 <a href="
59 {% if tag %}
59 {% if tag %}
60 {% url "tag" tag_name=tag page=prev_page %}
60 {% url "tag" tag_name=tag page=prev_page %}
61 {% else %}
61 {% else %}
62 {% url "index" page=prev_page %}
62 {% url "index" page=prev_page %}
63 {% endif %}
63 {% endif %}
64 ">{% trans "Previous page" %}</a>
64 ">{% trans "Previous page" %}</a>
65 </div>
65 </div>
66 {% endif %}
66 {% endif %}
67
67
68 {% for thread in threads %}
68 {% for thread in threads %}
69 {% cache 600 thread_short thread.id thread.thread.last_edit_time moderator LANGUAGE_CODE %}
69 {% cache 600 thread_short thread.id thread.thread.last_edit_time moderator LANGUAGE_CODE %}
70 <div class="thread">
70 <div class="thread">
71 {% if thread.bumpable %}
71 {% if thread.bumpable %}
72 <div class="post" id="{{ thread.op.id }}">
72 <div class="post" id="{{ thread.op.id }}">
73 {% else %}
73 {% else %}
74 <div class="post dead_post" id="{{ thread.op.id }}">
74 <div class="post dead_post" id="{{ thread.op.id }}">
75 {% endif %}
75 {% endif %}
76 {% if thread.op.image %}
76 {% if thread.op.image %}
77 <div class="image">
77 <div class="image">
78 <a class="thumb"
78 <a class="thumb"
79 href="{{ thread.op.image.url }}"><img
79 href="{{ thread.op.image.url }}"><img
80 src="{{ thread.op.image.url_200x150 }}"
80 src="{{ thread.op.image.url_200x150 }}"
81 alt="{{ thread.op.id }}"
81 alt="{{ thread.op.id }}"
82 width="{{ thread.op.image_pre_width }}"
82 width="{{ thread.op.image_pre_width }}"
83 height="{{ thread.op.image_pre_height }}"
83 height="{{ thread.op.image_pre_height }}"
84 data-width="{{ thread.op.image_width }}"
84 data-width="{{ thread.op.image_width }}"
85 data-height="{{ thread.op.image_height }}"/>
85 data-height="{{ thread.op.image_height }}"/>
86 </a>
86 </a>
87 </div>
87 </div>
88 {% endif %}
88 {% endif %}
89 <div class="message">
89 <div class="message">
90 <div class="post-info">
90 <div class="post-info">
91 <span class="title">{{ thread.op.title }}</span>
91 <span class="title">{{ thread.op.title }}</span>
92 <a class="post_id" href="{% url 'thread' thread.op.id %}"
92 <a class="post_id" href="{% url 'thread' thread.op.id %}"
93 >({{ thread.op.id }})</a>
93 >({{ thread.op.id }})</a>
94 [{{ thread.op.pub_time }}]
94 [{{ thread.op.pub_time }}]
95 [<a class="link" href="
95 [<a class="link" href="
96 {% url 'thread' thread.op.id %}#form"
96 {% url 'thread' thread.op.id %}#form"
97 >{% trans "Reply" %}</a>]
97 >{% trans "Reply" %}</a>]
98
98
99 {% if moderator %}
99 {% if moderator %}
100 <span class="moderator_info">
100 <span class="moderator_info">
101 [<a href="
101 [<a href="
102 {% url 'delete' post_id=thread.op.id %}?next={{ request.path }}"
102 {% url 'delete' post_id=thread.op.id %}?next={{ request.path }}"
103 >{% trans 'Delete' %}</a>]
103 >{% trans 'Delete' %}</a>]
104 ({{ thread.thread.poster_ip }})
104 ({{ thread.thread.poster_ip }})
105 [<a href="
105 [<a href="
106 {% url 'ban' post_id=thread.op.id %}?next={{ request.path }}"
106 {% url 'ban' post_id=thread.op.id %}?next={{ request.path }}"
107 >{% trans 'Ban IP' %}</a>]
107 >{% trans 'Ban IP' %}</a>]
108 </span>
108 </span>
109 {% endif %}
109 {% endif %}
110 </div>
110 </div>
111 {% autoescape off %}
111 {% autoescape off %}
112 {{ thread.op.text.rendered|truncatewords_html:50 }}
112 {{ thread.op.text.rendered|truncatewords_html:50 }}
113 {% endautoescape %}
113 {% endautoescape %}
114 {% if thread.op.is_referenced %}
114 {% if thread.op.is_referenced %}
115 <div class="refmap">
115 <div class="refmap">
116 {% trans "Replies" %}:
116 {% trans "Replies" %}:
117 {% for ref_post in thread.op.get_sorted_referenced_posts %}
117 {% for ref_post in thread.op.get_sorted_referenced_posts %}
118 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
118 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
119 >{% if not forloop.last %},{% endif %}
119 >{% if not forloop.last %},{% endif %}
120 {% endfor %}
120 {% endfor %}
121 </div>
121 </div>
122 {% endif %}
122 {% endif %}
123 </div>
123 </div>
124 <div class="metadata">
124 <div class="metadata">
125 {{ thread.thread.get_images_count }} {% trans 'images' %}.
125 {{ thread.thread.get_images_count }} {% trans 'images' %}.
126 {% if thread.thread.tags %}
126 {% if thread.thread.tags %}
127 <span class="tags">
127 <span class="tags">
128 {% for tag in thread.thread.get_tags %}
128 {% for tag in thread.thread.get_tags %}
129 <a class="tag" href="
129 <a class="tag" href="
130 {% url 'tag' tag_name=tag.name %}">
130 {% url 'tag' tag_name=tag.name %}">
131 #{{ tag.name }}</a
131 #{{ tag.name }}</a
132 >{% if not forloop.last %},{% endif %}
132 >{% if not forloop.last %},{% endif %}
133 {% endfor %}
133 {% endfor %}
134 </span>
134 </span>
135 {% endif %}
135 {% endif %}
136 </div>
136 </div>
137 </div>
137 </div>
138 {% if thread.last_replies.exists %}
138 {% if thread.last_replies.exists %}
139 {% if thread.skipped_replies %}
139 {% if thread.skipped_replies %}
140 <div class="skipped_replies">
140 <div class="skipped_replies">
141 <a href="{% url 'thread' thread.op.id %}">
141 <a href="{% url 'thread' thread.op.id %}">
142 {% blocktrans with count=thread.skipped_replies %}Skipped {{ count }} replies. Open thread to see all replies.{% endblocktrans %}
142 {% blocktrans with count=thread.skipped_replies %}Skipped {{ count }} replies. Open thread to see all replies.{% endblocktrans %}
143 </a>
143 </a>
144 </div>
144 </div>
145 {% endif %}
145 {% endif %}
146 <div class="last-replies">
146 <div class="last-replies">
147 {% for post in thread.last_replies %}
147 {% for post in thread.last_replies %}
148 {% if thread.bumpable %}
148 {% if thread.bumpable %}
149 <div class="post" id="{{ post.id }}">
149 <div class="post" id="{{ post.id }}">
150 {% else %}
150 {% else %}
151 <div class="post dead_post" id="{{ post.id }}">
151 <div class="post dead_post" id="{{ post.id }}">
152 {% endif %}
152 {% endif %}
153 {% if post.image %}
153 {% if post.image %}
154 <div class="image">
154 <div class="image">
155 <a class="thumb"
155 <a class="thumb"
156 href="{{ post.image.url }}"><img
156 href="{{ post.image.url }}"><img
157 src=" {{ post.image.url_200x150 }}"
157 src=" {{ post.image.url_200x150 }}"
158 alt="{{ post.id }}"
158 alt="{{ post.id }}"
159 width="{{ post.image_pre_width }}"
159 width="{{ post.image_pre_width }}"
160 height="{{ post.image_pre_height }}"
160 height="{{ post.image_pre_height }}"
161 data-width="{{ post.image_width }}"
161 data-width="{{ post.image_width }}"
162 data-height="{{ post.image_height }}"/>
162 data-height="{{ post.image_height }}"/>
163 </a>
163 </a>
164 </div>
164 </div>
165 {% endif %}
165 {% endif %}
166 <div class="message">
166 <div class="message">
167 <div class="post-info">
167 <div class="post-info">
168 <span class="title">{{ post.title }}</span>
168 <span class="title">{{ post.title }}</span>
169 <a class="post_id" href="
169 <a class="post_id" href="
170 {% url 'thread' thread.op.id %}#{{ post.id }}">
170 {% url 'thread' thread.op.id %}#{{ post.id }}">
171 ({{ post.id }})</a>
171 ({{ post.id }})</a>
172 [{{ post.pub_time }}]
172 [{{ post.pub_time }}]
173 </div>
173 </div>
174 {% autoescape off %}
174 {% autoescape off %}
175 {{ post.text.rendered|truncatewords_html:50 }}
175 {{ post.text.rendered|truncatewords_html:50 }}
176 {% endautoescape %}
176 {% endautoescape %}
177 </div>
177 </div>
178 {% if post.is_referenced %}
178 {% if post.is_referenced %}
179 <div class="refmap">
179 <div class="refmap">
180 {% trans "Replies" %}:
180 {% trans "Replies" %}:
181 {% for ref_post in post.get_sorted_referenced_posts %}
181 {% for ref_post in post.get_sorted_referenced_posts %}
182 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
182 <a href="{% post_url ref_post.id %}">&gt;&gt;{{ ref_post.id }}</a
183 >{% if not forloop.last %},{% endif %}
183 >{% if not forloop.last %},{% endif %}
184 {% endfor %}
184 {% endfor %}
185 </div>
185 </div>
186 {% endif %}
186 {% endif %}
187 </div>
187 </div>
188 {% endfor %}
188 {% endfor %}
189 </div>
189 </div>
190 {% endif %}
190 {% endif %}
191 </div>
191 </div>
192 {% endcache %}
192 {% endcache %}
193 {% endfor %}
193 {% endfor %}
194
194
195 {% if next_page %}
195 {% if next_page %}
196 <div class="page_link">
196 <div class="page_link">
197 <a href="
197 <a href="
198 {% if tag %}
198 {% if tag %}
199 {% url "tag" tag_name=tag page=next_page %}
199 {% url "tag" tag_name=tag page=next_page %}
200 {% else %}
200 {% else %}
201 {% url "index" page=next_page %}
201 {% url "index" page=next_page %}
202 {% endif %}
202 {% endif %}
203 ">{% trans "Next page" %}</a>
203 ">{% trans "Next page" %}</a>
204 </div>
204 </div>
205 {% endif %}
205 {% endif %}
206 {% else %}
206 {% else %}
207 <div class="post">
207 <div class="post">
208 {% trans 'No threads exist. Create the first one!' %}</div>
208 {% trans 'No threads exist. Create the first one!' %}</div>
209 {% endif %}
209 {% endif %}
210
210
211 <div class="post-form-w">
211 <div class="post-form-w">
212 <script src="{% static 'js/panel.js' %}"></script>
212 <script src="{% static 'js/panel.js' %}"></script>
213 <div class="post-form">
213 <div class="post-form">
214 <div class="form-title">{% trans "Create new thread" %}</div>
214 <div class="form-title">{% trans "Create new thread" %}</div>
215 <form enctype="multipart/form-data" method="post">{% csrf_token %}
215 <form enctype="multipart/form-data" method="post">{% csrf_token %}
216 {{ form.as_div }}
216 {{ form.as_div }}
217 <div class="form-submit">
217 <div class="form-submit">
218 <input type="submit" value="{% trans "Post" %}"/>
218 <input type="submit" value="{% trans "Post" %}"/>
219 </div>
219 </div>
220 </form>
220 </form>
221 <div>
221 <div>
222 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
222 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
223 </div>
223 </div>
224 <div><a href="{% url "staticpage" name="help" %}">
224 <div><a href="{% url "staticpage" name="help" %}">
225 {% trans 'Text syntax' %}</a></div>
225 {% trans 'Text syntax' %}</a></div>
226 </div>
226 </div>
227 </div>
227 </div>
228
228
229 {% endblock %}
229 {% endblock %}
230
230
231 {% block metapanel %}
231 {% block metapanel %}
232
232
233 <span class="metapanel">
233 <span class="metapanel">
234 <b><a href="{% url "authors" %}">Neboard</a> 1.5</b>
234 <b><a href="{% url "authors" %}">Neboard</a> 1.5 Aker</b>
235 {% trans "Pages:" %}
235 {% trans "Pages:" %}
236 {% for page in pages %}
236 {% for page in pages %}
237 [<a href="
237 [<a href="
238 {% if tag %}
238 {% if tag %}
239 {% url "tag" tag_name=tag page=page %}
239 {% url "tag" tag_name=tag page=page %}
240 {% else %}
240 {% else %}
241 {% url "index" page=page %}
241 {% url "index" page=page %}
242 {% endif %}
242 {% endif %}
243 ">{{ page }}</a>]
243 ">{{ page }}</a>]
244 {% endfor %}
244 {% endfor %}
245 [<a href="rss/">RSS</a>]
245 [<a href="rss/">RSS</a>]
246 </span>
246 </span>
247
247
248 {% endblock %}
248 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now