]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/view.py
OSQA-809, Include question summaries in question and answers views, wrap that in...
[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 SHOW_LATEST_COMMENTS_FIRST = Setting('SHOW_LATEST_COMMENTS_FIRST', False, VIEW_SET, dict(
13 label = _("Show latest comments first"),
14 help_text = _("Choose this if you want the latest comments to appear first."),
15 required=False))
16
17
18 SUMMARY_LENGTH = Setting('SUMMARY_LENGTH', 300, VIEW_SET, dict(
19 label = _("Summary Length"),
20 help_text = _("The number of characters that are going to be displayed in order to get the content summary.")))
21
22 SHOW_SUMMARY_ON_QUESTIONS_LIST = Setting('SHOW_SUMMARY_ON_QUESTIONS_LIST', False, VIEW_SET, dict(
23 label = _("Question summary on questions list?"),
24 help_text = _("Choose whether to show the question summary on questions list"),
25 required=False))
26
27 # Tag settings
28 RECENT_TAGS_SIZE = Setting('RECENT_TAGS_SIZE', 25, VIEW_SET, dict(
29 label = _("Recent tags block size"),
30 help_text = _("The number of tags to display in the recent tags block in the front page.")))
31
32 SHOW_TAGS_IN_A_CLOUD = Setting('SHOW_TAGS_IN_A_CLOUD', True, VIEW_SET, dict(
33 label = _("Show tags in a cloud"),
34 help_text = _("If selected the tags in the recent tags widget will be displayed in a cloud."),
35 required=False))
36
37 TAGS_CLOUD_MIN_OCCURS = Setting('TAGS_CLOUD_MIN_OCCURS', 1, VIEW_SET, dict(
38 label = _("Tags cloud min occurs"),
39 help_text = _("Used to calculate the font size of the tags in the cloud widget.")))
40
41 TAGS_CLOUD_MAX_OCCURS = Setting('TAGS_CLOUD_MAX_OCCURS', 35, VIEW_SET, dict(
42 label = _("Tags cloud max occurs"),
43 help_text = _("Used to calculate the font size of the tags in the cloud widget.")))
44
45 TAGS_CLOUD_MIN_FONT_SIZE = Setting('TAGS_CLOUD_MIN_FONT_SIZE', 10, VIEW_SET, dict(
46 label = _("Tags cloud min font size"),
47 help_text = _("Used to calculate the font size of the tags in the cloud widget.")))
48
49 TAGS_CLOUD_MAX_FONT_SIZE = Setting('TAGS_CLOUD_MAX_FONT_SIZE', 25, VIEW_SET, dict(
50 label = _("Tags cloud max font size"),
51 help_text = _("Used to calculate the font size of the tags in the cloud widget.")))
52
53 RECENT_AWARD_SIZE = Setting('RECENT_AWARD_SIZE', 15, VIEW_SET, dict(
54 label = _("Recent awards block size"),
55 help_text = _("The number of awards to display in the recent awards block in the front page.")))
56
57 UPDATE_LATEST_ACTIVITY_ON_TAG_EDIT = Setting('UPDATE_LATEST_ACTIVITY_ON_TAG_EDIT', True, VIEW_SET, dict(
58 label = _("Update latest activity on tag edit"), required=False,
59 help_text = _("If you check this the latest activity will be updated when editing only the tags of a question.")))
60
61 LIMIT_RELATED_TAGS = Setting('LIMIT_RELATED_TAGS', 0, VIEW_SET, dict(
62 label = _("Limit related tags block"),
63 help_text = _("Limit related tags block size in questions list pages. Set to 0 to display all all tags.")))
64