]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/view.py
14b3aad131898dfcf7b4ba7b9285264d85fdbbdc
[osqa.git] / forum / settings / view.py
1 from base import Setting, SettingSet
2 from django.utils.translation import ugettext_lazy as _
3
4 """ view settings """
5 VIEW_SET = SettingSet('view', _('View settings'), _("Set up how certain parts of the site are displayed."), 20)
6
7 EMBED_YOUTUBE_VIDEOS = Setting('EMBED_YOUTUBE_VIDEOS', True, VIEW_SET, dict(
8 label = _("Embed YouTube Videos"),
9 help_text = _("If you check this YouTube videos will be embedded"),
10 required=False))
11
12 SUMMARY_LENGTH = Setting('SUMMARY_LENGTH', 300, VIEW_SET, dict(
13 label = _("Summary Length"),
14 help_text = _("The number of characters that are going to be displayed in order to get the content summary.")))
15
16 RECENT_TAGS_SIZE = Setting('RECENT_TAGS_SIZE', 25, VIEW_SET, dict(
17 label = _("Recent tags block size"),
18 help_text = _("The number of tags to display in the recent tags block in the front page.")))
19
20 RECENT_AWARD_SIZE = Setting('RECENT_AWARD_SIZE', 15, VIEW_SET, dict(
21 label = _("Recent awards block size"),
22 help_text = _("The number of awards to display in the recent awards block in the front page.")))
23
24 UPDATE_LATEST_ACTIVITY_ON_TAG_EDIT = Setting('UPDATE_LATEST_ACTIVITY_ON_TAG_EDIT', True, VIEW_SET, dict(
25 label = _("Update latest activity on tag edit"), required=False,
26 help_text = _("If you check this the latest activity will be updated when editing only the tags of a question.")))
27
28 LIMIT_RELATED_TAGS = Setting('LIMIT_RELATED_TAGS', 0, VIEW_SET, dict(
29 label = _("Limit related tags block"),
30 help_text = _("Limit related tags block size in questions list pages. Set to 0 to display all all tags.")))