mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 07:13:44 +08:00
FEATURE: top page should not be infinite. Limite them to 200 topics by default
This commit is contained in:
parent
0b2ead2248
commit
a177732d28
|
@ -101,6 +101,7 @@ class ListController < ApplicationController
|
|||
TopTopic.periods.each do |period|
|
||||
define_method("top_#{period}") do
|
||||
options = build_topic_list_options
|
||||
options[:per_page] = SiteSetting.topics_per_period_in_top_page
|
||||
user = list_target_user
|
||||
list = TopicQuery.new(user, options).public_send("list_top_#{period}")
|
||||
list.more_topics_url = construct_url_with(period, options, "top")
|
||||
|
|
|
@ -604,14 +604,15 @@ en:
|
|||
post_menu: "Determine which items appear on the post menu, and in what order. Example like|edit|flag|delete|share|bookmark|reply"
|
||||
share_links: "Determine which items appear on the share dialog, and in what order. Example twitter|facebook|google+|email"
|
||||
track_external_right_clicks: "Track external links that are right clicked (eg: open in new tab) disabled by default because it rewrites URLs"
|
||||
topics_per_page: "How many topics loaded by default on the topics list page"
|
||||
topics_per_page: "How many topics loaded by default on the topics list page, and when loading more topics"
|
||||
posts_per_page: "How many posts loaded by default on a topic page, and when loading more posts"
|
||||
site_contact_username: "Username for the author of automated private messages sent by the forum"
|
||||
send_welcome_message: "Do new users get a welcome private message?"
|
||||
suppress_reply_directly_below: "Don't show reply count on a post when there is a single reply directly below"
|
||||
suppress_reply_directly_above: "Don't show in-reply-to on a post when there is a single reply directly above"
|
||||
|
||||
topics_per_period_in_top_summary: "How many topics loaded by default on the top topics page"
|
||||
topics_per_period_in_top_summary: "How many topics loaded on the top topics summary"
|
||||
topics_per_period_in_top_page: "How many topics loaded on the top topics page"
|
||||
|
||||
allow_index_in_robots_txt: "Site should be indexed by search engines (update robots.txt)"
|
||||
email_domains_blacklist: "A pipe-delimited list of email domains that are not allowed. Example: mailinator.com|trashmail.net"
|
||||
|
|
|
@ -58,6 +58,8 @@ basic:
|
|||
default: 30
|
||||
topics_per_period_in_top_summary:
|
||||
default: 20
|
||||
topics_per_period_in_top_page:
|
||||
default: 200
|
||||
|
||||
users:
|
||||
enable_local_logins:
|
||||
|
|
Loading…
Reference in New Issue
Block a user