##// END OF EJS Templates
Updated 'next page' and 'previous page' links in search results.
neko259 -
r707:64726435 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: 2014-06-22 20:07+0300\n"
10 "POT-Creation-Date: 2014-06-22 22:55+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"
@@ -240,7 +240,7 b' msgstr "\xd0\x9f\xd0\xbe\xd0\xba\xd0\xb0\xd0\xb7\xd1\x8b\xd0\xb2\xd0\xb0\xd1\x82\xd1\x8c \xd1\x82\xd0\xb5\xd0\xb3"'
240 240 msgid "Hide tag"
241 241 msgstr "Скрывать тег"
242 242
243 #: templates/boards/posting_general.html:79
243 #: templates/boards/posting_general.html:79 templates/search/search.html:19
244 244 msgid "Previous page"
245 245 msgstr "Предыдущая страница"
246 246
@@ -249,7 +249,7 b' msgstr "\xd0\x9f\xd1\x80\xd0\xb5\xd0\xb4\xd1\x8b\xd0\xb4\xd1\x83\xd1\x89\xd0\xb0\xd1\x8f \xd1\x81\xd1\x82\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb8\xd1\x86\xd0\xb0"'
249 249 msgid "Skipped %(count)s replies. Open thread to see all replies."
250 250 msgstr "Пропущено %(count)s ответов. Откройте тред, чтобы увидеть все ответы."
251 251
252 #: templates/boards/posting_general.html:121
252 #: templates/boards/posting_general.html:121 templates/search/search.html:33
253 253 msgid "Next page"
254 254 msgstr "Следующая страница"
255 255
@@ -387,17 +387,6 b' msgstr "\xd0\x9f\xd0\xb5\xd1\x80\xd0\xb5\xd0\xb4 \xd1\x8d\xd1\x82\xd0\xb8\xd0\xbc\xd0\xb8 \xd1\x82\xd0\xb5\xd0\xb3\xd0\xb0\xd0\xbc\xd0\xb8 \xd0\xbd\xd1\x83\xd0\xb6\xd0\xbd\xd0\xb0 \xd0\xbd\xd0\xbe\xd0\xb2\xd0\xb0\xd1\x8f \xd1\x81\xd1\x82\xd1\x80\xd0\xbe\xd0\xba\xd0\xb0:"'
387 387 msgid "Comment"
388 388 msgstr "Комментарий"
389 389
390 #: templates/search/search.html:19
390 #: templates/search/search.html:27
391 391 msgid "No results found."
392 msgstr "Результаты."
393
394 #: templates/search/search.html:24
395 msgid "Previous"
396 msgstr "Предыдущие"
397
398 #: templates/search/search.html:25
399 msgid "Next"
400 msgstr "Следующие"
401
402 #~ msgid "User ID"
403 #~ msgstr "ID пользователя"
392 msgstr "Результаты не найдены." No newline at end of file
@@ -13,16 +13,25 b''
13 13 </div>
14 14
15 15 {% if query %}
16 {% if page.has_previous %}
17 <div class="page_link">
18 <a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">
19 {% trans "Previous page" %}
20 </a>
21 </div>
22 {% endif %}
23
16 24 {% for result in page.object_list %}
17 25 {{ result.object.get_view }}
18 26 {% empty %}
19 27 <div class="post">{% trans 'No results found.' %}</div>
20 28 {% endfor %}
21 29
22 {% if page.has_previous or page.has_next %}
23 <div>
24 {% if page.has_previous %}<a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}&laquo; {% trans 'Previous' %}{% if page.has_previous %}</a>{% endif %}
25 {% if page.has_next %}<a href="?q={{ query }}&amp;page= {{ page.next_page_number }}">{% endif %}{% trans 'Next' %} &raquo; {% if page.has_next %}</a>{% endif %}
30 {% if page.has_next %}
31 <div class="page_link">
32 <a href="?q={{ query }}&amp;page={{ page.next_page_number }}">
33 {% trans "Next page" %}
34 </a>
26 35 </div>
27 36 {% endif %}
28 37 {% endif %}
General Comments 0
You need to be logged in to leave comments. Login now