Show More
|
1 | NO CONTENT: modified file, binary diff hidden |
@@ -488,3 +488,6 b' msgid_plural "Please wait %(delay)d seco' | |||
|
488 | 488 | msgstr[0] "Пожалуйста подождите %(delay)d секунду перед отправкой сообщения" |
|
489 | 489 | msgstr[1] "Пожалуйста подождите %(delay)d секунды перед отправкой сообщения" |
|
490 | 490 | msgstr[2] "Пожалуйста подождите %(delay)d секунд перед отправкой сообщения" |
|
491 | ||
|
492 | msgid "New threads" | |
|
493 | msgstr "Новые темы" |
@@ -69,6 +69,7 b'' | |||
|
69 | 69 | <div class="navigation_panel footer"> |
|
70 | 70 | {% block metapanel %}{% endblock %} |
|
71 | 71 | [<a href="{% url 'admin:index' %}">{% trans 'Admin' %}</a>] |
|
72 | [<a href="{% url 'index' %}?order=pub">{% trans 'New threads' %}</a>] | |
|
72 | 73 | {% with ppd=posts_per_day|floatformat:2 %} |
|
73 | 74 | {% blocktrans %}Speed: {{ ppd }} posts per day{% endblocktrans %} |
|
74 | 75 | {% endwith %} |
@@ -52,7 +52,16 b' class AllThreadsView(PostMixin, BaseBoar' | |||
|
52 | 52 | form = ThreadForm(error_class=PlainErrorList) |
|
53 | 53 | |
|
54 | 54 | self.settings_manager = get_settings_manager(request) |
|
55 | paginator = get_paginator(self.get_threads().order_by('-bump_time'), | |
|
55 | ||
|
56 | threads = self.get_threads() | |
|
57 | ||
|
58 | order = request.GET.get('order', 'bump') | |
|
59 | if order == 'bump': | |
|
60 | threads = threads.order_by('-bump_time') | |
|
61 | else: | |
|
62 | threads = threads.filter(multi_replies__opening=True).order_by('-multi_replies__pub_time') | |
|
63 | ||
|
64 | paginator = get_paginator(threads, | |
|
56 | 65 | settings.get_int('View', 'ThreadsPerPage')) |
|
57 | 66 | paginator.current_page = int(page) |
|
58 | 67 |
General Comments 0
You need to be logged in to leave comments.
Login now