1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
"""
Sidebar settings
"""
from askbot.conf.settings_wrapper import settings
from askbot.deps.livesettings import ConfigurationGroup
from askbot.deps.livesettings import values
from django.utils.translation import ugettext as _
from askbot.conf.super_groups import CONTENT_AND_UI
SIDEBAR_QUESTION = ConfigurationGroup(
'SIDEBAR_QUESTION',
_('Question page sidebar'),
super_group = CONTENT_AND_UI
)
settings.register(
values.LongStringValue(
SIDEBAR_QUESTION,
'SIDEBAR_QUESTION_HEADER',
description = _('Custom sidebar header'),
default = '',
help_text = _(
'Use this area to enter content at the TOP of the sidebar'
'in HTML format. When using this option '
'(as well as the sidebar footer), please '
'use the HTML validation service to make sure that '
'your input is valid and works well in all browsers.'
)
)
)
settings.register(
values.BooleanValue(
SIDEBAR_QUESTION,
'SIDEBAR_QUESTION_SHOW_TAGS',
description = _('Show tag list in sidebar'),
help_text = _(
'Uncheck this if you want to hide the tag '
'list from the sidebar '
),
default = True
)
)
settings.register(
values.BooleanValue(
SIDEBAR_QUESTION,
'SIDEBAR_QUESTION_SHOW_META',
description = _('Show meta information in sidebar'),
help_text = _(
'Uncheck this if you want to hide the meta '
'information about the question (post date, '
'views, last updated). '
),
default = True
)
)
settings.register(
values.BooleanValue(
SIDEBAR_QUESTION,
'SIDEBAR_QUESTION_SHOW_RELATED',
description = _('Show related questions in sidebar'),
help_text = _(
'Uncheck this if you want to hide the list '
'of related questions. '
),
default = True
)
)
settings.register(
values.LongStringValue(
SIDEBAR_QUESTION,
'SIDEBAR_QUESTION_FOOTER',
description = _('Custom sidebar footer'),
default = '',
help_text = _(
'Use this area to enter content at the BOTTOM of the sidebar'
'in HTML format. When using this option '
'(as well as the sidebar header), please '
'use the HTML validation service to make sure that '
'your input is valid and works well in all browsers.'
)
)
)
|