diff --git a/files/helpers/const.py b/files/helpers/const.py index 21f168ab2b..f20991ba65 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -210,8 +210,10 @@ WPD_CHANNEL_ID = 1013990963846332456 PIN_AWARD_TEXT = " (pin award)" THEMES = ["4chan","classic","classic_dark","coffee","dark","dramblr","light","midnight","transparent","tron","win98"] -SORTS = ["hot", "bump", "new", "old", "top", "bottom", "controversial", "comments"] +COMMENT_SORTS = ["hot", "new", "old", "top", "bottom", "controversial"] +SORTS = COMMENT_SORTS + ["bump", "comments"] TIME_FILTERS = ["hour", "day", "week", "month", "year", "all"] +PAGE_SIZES = [10, 25, 50, 100] ################################################################################ ### SITE SPECIFIC CONSTANTS diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index a57f441fc2..fc227b1e29 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -54,5 +54,5 @@ def inject_constants(): "CONTENT_SECURITY_POLICY_HOME":CONTENT_SECURITY_POLICY_HOME, "TRUESCORE_DONATE_LIMIT":TRUESCORE_DONATE_LIMIT, "BAN_EVASION_DOMAIN":BAN_EVASION_DOMAIN, "HOUSE_JOIN_COST":HOUSE_JOIN_COST, "HOUSE_SWITCH_COST":HOUSE_SWITCH_COST, "IMAGE_FORMATS":IMAGE_FORMATS, - "THEMES":THEMES, "SORTS":SORTS, "TIME_FILTERS":TIME_FILTERS, "HOUSES":HOUSES + "PAGE_SIZES":PAGE_SIZES, "THEMES":THEMES, "COMMENT_SORTS":COMMENT_SORTS, "SORTS":SORTS, "TIME_FILTERS":TIME_FILTERS, "HOUSES":HOUSES } diff --git a/files/templates/settings_advanced.html b/files/templates/settings_advanced.html index 5117646f4a..15a9113265 100644 --- a/files/templates/settings_advanced.html +++ b/files/templates/settings_advanced.html @@ -40,7 +40,7 @@
Change how many posts appear on every page.
Change the default sorting for comments.