# HG changeset patch # User neko259 # Date 2017-12-11 10:13:21 # Node ID 6d66389f99ac3972977a66ed032fca457a87e0ef # Parent 60545aed0c18dffbaae888506871c494c7fd7999 Use proper settings for max landing threads. Show thread last update time instead of number of posts 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 @@ -26,7 +26,8 @@ {% endif %} {% endwith %}
{{ op.thread.get_sections_str }}
-
{{ op.get_link_view }} +{{ op.today_post_count }}
+
{{ op.get_link_view }}
+
{{ op.thread.last_edit_time }}
{% endfor %} diff --git a/boards/views/landing.py b/boards/views/landing.py --- a/boards/views/landing.py +++ b/boards/views/landing.py @@ -31,7 +31,7 @@ class LandingView(BaseBoardView): .annotate(today_post_count=Count('thread__replies'))\ .order_by('-pub_time') - max_landing_threads = settings.get_int('View', 'MaxFavoriteThreads') + max_landing_threads = settings.get_int('View', 'MaxLandingThreads') if max_landing_threads > 0: ops = ops[:max_landing_threads]