##// END OF EJS Templates
Add link to thread in the post feed
neko259 -
r1166:3a3c1fd7 default
parent child Browse files
Show More
1 NO CONTENT: modified file, binary diff hidden
@@ -7,7 +7,7 b' msgid ""'
7 7 msgstr ""
8 8 "Project-Id-Version: PACKAGE VERSION\n"
9 9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2015-05-14 12:40+0300\n"
10 "POT-Creation-Date: 2015-05-14 13:12+0300\n"
11 11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -266,35 +266,38 b' msgid "feed"'
266 266 msgstr ""
267 267
268 268 #: templates/boards/feed.html:45
269 #| msgid "No threads exist. Create the first one!"
270 269 msgid "No posts exist. Create the first one!"
271 270 msgstr "Нет сообщений. Создайте первое!"
272 271
273 #: templates/boards/post.html:24
272 #: templates/boards/post.html:25
274 273 msgid "Open"
275 274 msgstr "Открыть"
276 275
277 #: templates/boards/post.html:26 templates/boards/post.html.py:30
276 #: templates/boards/post.html:27 templates/boards/post.html.py:38
278 277 msgid "Reply"
279 278 msgstr "Ответить"
280 279
281 #: templates/boards/post.html:35
280 #: templates/boards/post.html:33
281 msgid " in "
282 msgstr " в "
283
284 #: templates/boards/post.html:43
282 285 msgid "Edit"
283 286 msgstr "Изменить"
284 287
285 #: templates/boards/post.html:37
288 #: templates/boards/post.html:45
286 289 msgid "Edit thread"
287 290 msgstr "Изменить тему"
288 291
289 #: templates/boards/post.html:69
292 #: templates/boards/post.html:77
290 293 msgid "Replies"
291 294 msgstr "Ответы"
292 295
293 #: templates/boards/post.html:81 templates/boards/thread.html:26
296 #: templates/boards/post.html:89 templates/boards/thread.html:26
294 297 msgid "messages"
295 298 msgstr "сообщений"
296 299
297 #: templates/boards/post.html:82 templates/boards/thread.html:27
300 #: templates/boards/post.html:90 templates/boards/thread.html:27
298 301 msgid "images"
299 302 msgstr "изображений"
300 303
@@ -49,6 +49,7 b" PARAMETER_POST = 'post'"
49 49 PARAMETER_OP_ID = 'opening_post_id'
50 50 PARAMETER_NEED_OPEN_LINK = 'need_open_link'
51 51 PARAMETER_REPLY_LINK = 'reply_link'
52 PARAMETER_NEED_OP_DATA = 'need_op_data'
52 53
53 54 REFMAP_STR = '<a href="{}">&gt;&gt;{}</a>'
54 55
@@ -259,6 +260,7 b' class Post(models.Model, Viewable):'
259 260 PARAMETER_TRUNCATED: truncated,
260 261 PARAMETER_OP_ID: opening_post_id,
261 262 PARAMETER_REPLY_LINK: reply_link,
263 PARAMETER_NEED_OP_DATA: kwargs.get(PARAMETER_NEED_OP_DATA)
262 264 })
263 265
264 266 def get_search_view(self, *args, **kwargs):
@@ -32,7 +32,7 b''
32 32 {% endif %}
33 33
34 34 {% for post in posts %}
35 {% post_view post moderator=moderator truncated=True %}
35 {% post_view post moderator=moderator truncated=True need_op_data=True %}
36 36 {% endfor %}
37 37
38 38 {% if next_page_link %}
@@ -18,11 +18,19 b''
18 18 <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time>
19 19 {% endif %}
20 20 {% endif %}
21 {% if is_opening and need_open_link %}
22 {% if thread.archived %}
23 <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>
24 {% else %}
25 <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>
21 {% if is_opening %}
22 {% if need_open_link %}
23 {% if thread.archived %}
24 <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>
25 {% else %}
26 <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>
27 {% endif %}
28 {% endif %}
29 {% else %}
30 {% if need_op_data %}
31 {% with thread.get_opening_post as op %}
32 {% trans " in " %}<a href="{{ op.get_absolute_url }}">&gt;&gt;{{ op.id }}</a>
33 {% endwith %}
26 34 {% endif %}
27 35 {% endif %}
28 36 {% if reply_link and not thread.archived %}
General Comments 0
You need to be logged in to leave comments. Login now