diff --git a/boards/locale/ru/LC_MESSAGES/django.mo b/boards/locale/ru/LC_MESSAGES/django.mo index 260475828d23dc5902e931395cfa1cd6a6c0412b..0d28c0882964720772da76f1c0137e3ae3544526 GIT binary patch literal 10512 zc$~#p4Qy0bcD~(Yw~b@`M;0&yxL|(Fk{N7BcFBN~7%&N48x#K|O}Y(v_B`wtX5O2; zHv>4OT?m_m$~2^DqK&dm0_mzzrEWAB8)E}zS6c0A`}<~9RV!87N>SBasamz$wAroH zsQu14_sxv$nG&^CJMiB3-o59Zd;ZUT{+p)TUsw2j8Q0yo?z&y6Zvbn5N%8NSHA-Pf zeGAwI{0?vj@Mk~`+FQw|DEA?2bkBATuX#*%@WbG1-K5l1K124G<4n)+2tuXQovgpVPVCYJTmkH@6FElfg#H9@Bk&Ax zGw=`V#GVDS?gw?U{|CTN0spB^^!d>6|GA;R9ZW}och<{%wqE#;)r&p8QZIbY)r&vh zH18Mc#qRGLx^J8LKdl!zzi;?_VEF!|UiSOvdXewn>c#%IHOPEzgV?DN7yxyH*yptd z;eV+?_{|vnc7w#rUjUcVJ`Ez*M-4_V1kG)vSEKN)Z#4dFl=y8i?@t3a0qsVy%eh9; z_ z@H@a(;D4-?xNlu0`aJ;b1op2I`@as{LV3SR>dFsSNqm0lZt?#z;QeIhyG4(2;5Oj9 zcMIM3fi1wl2gb?YtEKMTzgp_cudbH$&jDk=$<-pq2dicM&sGcHJJ*O`*RK)%Hm?!8 ze}0X`M=!7+{vR^$SJsN$-&-qmAFdUD)@t$Fb}jP{YVo&Y#$VB5ueY@1>-$>v{}U~I zKhR?Tf7KEPqzsKWtP{Cg*2#W5fnS0=kFFDYzrSAO{?U5T>!bBTU(+J?Slc4@?QD_# zjc5N1W?cXeNKfYP`yPIYHG;kmA zoS83d7QKJGS@izc(64P3J8cJk9(c4>^61@GQx{uJ{WbWLR?+9@K$uw#;Ce#IkK&$u zN^y0s8QW{H-ry30pEF1~He#M1R&uVO-yU2Km}j!XaV6)89y7L|e5FKIgo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e9C1GSOc4Em$}o z7lEee4*}Fuu1B9TyrobYcb}(E#Box0jUw9Q3jl(U?jJ5m0{ z6GdMXpK_SK8b$FG>kfe=VYLJ`)|^X_^!dVB`uic6PV)E1X%08~u9>d<(aJ}t354<$ zaRPDDv@E~q%h_m1MBTYlhYU diff --git a/boards/locale/ru/LC_MESSAGES/django.po b/boards/locale/ru/LC_MESSAGES/django.po --- a/boards/locale/ru/LC_MESSAGES/django.po +++ b/boards/locale/ru/LC_MESSAGES/django.po @@ -553,4 +553,11 @@ msgid "Messages per day/week/month:" msgstr "Сообщений за день/неделю/месяц:" msgid "Subscribe to thread" -msgstr "Подписаться на тему" \ No newline at end of file +msgstr "Подписаться на тему" + +msgid "Active threads:" +msgstr "Активные темы:" + +msgid "No active threads today." +msgstr "Сегодня нет активных тем." + diff --git a/boards/templates/boards/landing.html b/boards/templates/boards/landing.html --- a/boards/templates/boards/landing.html +++ b/boards/templates/boards/landing.html @@ -25,9 +25,14 @@
+ {% if latest_threads %} + {% trans "Active threads:" %}
{% for op in latest_threads %} {{ op.get_link_view|safe }} {{ op.get_title_or_text }} ({{ op.thread.get_sections_str|safe }}) +{{ op.today_post_count }}
{% endfor %} + {% else %} + {% trans "No active threads today." %} + {% endif %}
{% endblock %} diff --git a/boards/views/landing.py b/boards/views/landing.py --- a/boards/views/landing.py +++ b/boards/views/landing.py @@ -8,7 +8,7 @@ from django.views.decorators.csrf import from boards import settings from boards.models import Post -from boards.models import Tag, Attachment +from boards.models import Tag, Attachment, STATUS_ACTIVE from boards.views.base import BaseBoardView PARAM_SECTION_STR = 'section_str' @@ -30,7 +30,7 @@ class LandingView(BaseBoardView): today = datetime.now() - timedelta(1) max_landing_threads = settings.get_int('View', 'MaxFavoriteThreads') - ops = Post.objects.filter(thread__replies__pub_time__gt=today, opening=True)\ + ops = Post.objects.filter(thread__replies__pub_time__gt=today, opening=True, thread__status=STATUS_ACTIVE)\ .annotate(today_post_count=Count('thread__replies'))\ .order_by('-pub_time')[:max_landing_threads] params[PARAM_LATEST_THREADS] = ops