X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/3ba9e8fa774dcb586990f71986d8618631f3e5b1..ee224eb2acc8f8d6ef4af6c083060a4403f45cd9:/forum/settings/moderation.py?ds=inline diff --git a/forum/settings/moderation.py b/forum/settings/moderation.py index 19763b4..742cc05 100644 --- a/forum/settings/moderation.py +++ b/forum/settings/moderation.py @@ -3,7 +3,7 @@ from forms import StringListWidget from django.utils.encoding import smart_unicode from django.utils.translation import ugettext_lazy as _ -from django.forms.widgets import Textarea +from django.forms.widgets import Textarea, RadioSelect MODERATION_SET = SettingSet('moderation', _('Moderation settings'), _("Define the moderation workflow of your site"), 100) @@ -18,7 +18,11 @@ CANNED_COMMENTS = Setting('CANNED_COMMENTS', ], MODERATION_SET, dict( label = _("Canned comments"), -help_text = _("Create some canned comments to be used for easier moderation."), +help_text = _(""" +

Create some canned comments to be used for easier moderation. You can access the {{ post }} and {{ settings }} variables.

+

If you want to access the current post author username you can use {{ post.author }}, for the question title use {{ post.title }}.

+

To get the application title use {{ settings.APP_TITLE }}. All settings are accessible through the settings object.

+"""), widget=StringListWidget)) FLAG_TYPES = Setting('FLAG_TYPES', @@ -37,3 +41,17 @@ MODERATION_SET, dict( label = _("Close Reasons"), help_text = _("Create some close reasons to use in the close question popup."), widget=StringListWidget)) + + +# Flag control position +REPORT_OFFENSIVE_CONTROL_POSITION_CHOICES = ( + ('more', _('Position it in the "More" menu')), + ('controls', _('Position it in main controls')), +) + +REPORT_OFFENSIVE_CONTROL_POSITION = Setting('REPORT_OFFENSIVE_CONTROL_POSITION', 'more', MODERATION_SET, dict( +label = _("Position of report control"), +help_text = _("Choose the position of the \"report (0)\" control of nodes."), +widget=RadioSelect, +choices=REPORT_OFFENSIVE_CONTROL_POSITION_CHOICES, +required=False))