X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/596fa1bf821c572f45c16ba92cb0e65211f6a3ae..0df1608e9f603e6f40b306a3aff20e52e7318d5a:/forum/settings/minrep.py?ds=sidebyside diff --git a/forum/settings/minrep.py b/forum/settings/minrep.py index 7170a03..1c9e17d 100644 --- a/forum/settings/minrep.py +++ b/forum/settings/minrep.py @@ -3,6 +3,10 @@ from django.utils.translation import ugettext_lazy as _ MIN_REP_SET = SettingSet('minrep', _('Minimum reputation config'), _("Configure the minimum reputation required to perform certain actions on your site."), 300) +CAPTCHA_IF_REP_LESS_THAN = Setting('CAPTCHA_IF_REP_LESS_THAN', 0, MIN_REP_SET, dict( +label = _("Show captcha if user with less reputation than"), +help_text = _("If the user has less reputation, captcha is used to when adding new content."))) + REP_TO_VOTE_UP = Setting('REP_TO_VOTE_UP', 15, MIN_REP_SET, dict( label = _("Minimum reputation to vote up"), help_text = _("The minimum reputation an user must have to be allowed to vote up."))) @@ -27,10 +31,19 @@ REP_TO_UPLOAD = Setting('REP_TO_UPLOAD', 60, MIN_REP_SET, dict( label = _("Minimum reputation to upload"), help_text = _("The minimum reputation an user must have to be allowed to upload a file."))) +REP_TO_CREATE_TAGS = Setting('REP_TO_CREATE_TAGS', 250, MIN_REP_SET, dict( +label = _("Minimum reputation to create tags"), +help_text = _("The minimum reputation an user must have to be allowed to create new tags."))) + REP_TO_CLOSE_OWN = Setting('REP_TO_CLOSE_OWN', 250, MIN_REP_SET, dict( label = _("Minimum reputation to close own question"), help_text = _("The minimum reputation an user must have to be allowed to close his own question."))) +UNIFY_PERMISSIONS_TO_CLOSE_AND_REOPEN = Setting('UNIFY_PERMISSIONS_TO_CLOSE_AND_REOPEN', True, MIN_REP_SET, dict( +label = _("Unify close and reopen permissions"), +help_text = _("If checked the same permissions as the ones to close question will be required to reopen it."), +required=False)) + REP_TO_REOPEN_OWN = Setting('REP_TO_REOPEN_OWN', 500, MIN_REP_SET, dict( label = _("Minimum reputation to reopen own question"), help_text = _("The minimum reputation an user must have to be allowed to reopen his own question."))) @@ -43,6 +56,10 @@ REP_TO_EDIT_WIKI = Setting('REP_TO_EDIT_WIKI', 750, MIN_REP_SET, dict( label = _("Minimum reputation to edit wiki posts"), help_text = _("The minimum reputation an user must have to be allowed to edit community wiki posts."))) +REP_TO_WIKIFY = Setting('REP_TO_WIKIFY', 2000, MIN_REP_SET, dict( +label = _("Minimum reputation to mark post as community wiki"), +help_text = _("The minimum reputation an user must have to be allowed to mark a post as community wiki."))) + REP_TO_EDIT_OTHERS = Setting('REP_TO_EDIT_OTHERS', 2000, MIN_REP_SET, dict( label = _("Minimum reputation to edit others posts"), help_text = _("The minimum reputation an user must have to be allowed to edit others posts."))) @@ -55,6 +72,18 @@ REP_TO_DELETE_COMMENTS = Setting('REP_TO_DELETE_COMMENTS', 2000, MIN_REP_SET, di label = _("Minimum reputation to delete comments"), help_text = _("The minimum reputation an user must have to be allowed to delete comments."))) +REP_TO_CONVERT_TO_COMMENT = Setting('REP_TO_CONVERT_TO_COMMENT', 2000, MIN_REP_SET, dict( +label = _("Minimum reputation to convert answers to comment"), +help_text = _("The minimum reputation an user must have to be allowed to convert an answer into a comment."))) + +REP_TO_CONVERT_COMMENTS_TO_ANSWERS = Setting('REP_TO_CONVERT_COMMENTS_TO_ANSWERS', 2000, MIN_REP_SET, dict( +label = _("Minimum reputation to convert comments to answers"), +help_text = _("The minimum reputation an user must have to be allowed to convert comments into an answer."))) + +REP_TO_CONVERT_TO_QUESTION = Setting('REP_TO_CONVERT_TO_QUESTION', 2000, MIN_REP_SET, dict( +label = _("Minimum reputation to convert answers to questions"), +help_text = _("The minimum reputation an user must have to be allowed to convert an answer into a question."))) + REP_TO_VIEW_FLAGS = Setting('REP_TO_VIEW_FLAGS', 2000, MIN_REP_SET, dict( label = _("Minimum reputation to view offensive flags"), help_text = _("The minimum reputation an user must have to view offensive flags."))) @@ -63,4 +92,4 @@ help_text = _("The minimum reputation an user must have to view offensive flags. #label = _("Minimum reputation to disable nofollow"), #help_text = _(""" #The minimum reputation an user must have to be allowed to disable the nofollow attribute of a post link. -#"""))) \ No newline at end of file +#""")))