]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/sidebar.py
179229fe5ebb3c8b01a48e81bcd78efc2ce42179
[osqa.git] / forum / settings / sidebar.py
1 from base import Setting, SettingSet
2 from django.forms.widgets import Textarea
3
4 SIDEBAR_SET = SettingSet('sidebar', 'Sidebar content', "Enter contents to display in the sidebar. You can use markdown and some basic html tags.", 1000, True)
5
6 SIDEBAR_UPPER_SHOW = Setting('SIDEBAR_UPPER_SHOW', False, SIDEBAR_SET, dict(
7 label = "Include Upper Sidebar Block",
8 help_text = "Check if your pages should include the upper sidebar block.",
9 required=False))
10
11
12 SIDEBAR_UPPER_TEXT = Setting('SIDEBAR_UPPER_TEXT',
13 u"""
14 ## Host your own OSQA at WebFaction
15
16 We recommend WebFaction for hosting OSQA. Their affordable,
17 reliable servers have everything you need!
18 """, SIDEBAR_SET, dict(
19 label = "Sidebar (Upper)",
20 help_text = " The upper sidebar block. ",
21 widget=Textarea(attrs={'rows': '10'})))
22
23
24 SIDEBAR_LOWER_SHOW = Setting('SIDEBAR_LOWER_SHOW', False, SIDEBAR_SET, dict(
25 label = "Include Lower Sidebar Block",
26 help_text = "Check if your pages should include the lower sidebar block.",
27 required=False))
28
29
30 SIDEBAR_LOWER_TEXT = Setting('SIDEBAR_LOWER_TEXT',
31 u"""
32 ## Learn more about OSQA
33
34 The OSQA website and wiki are also great resources to help you
35 learn more about the OSQA open source Q&A system!
36 """, SIDEBAR_SET, dict(
37 label = "Sidebar (Lower)",
38 help_text = " The lower sidebar block. ",
39 widget=Textarea(attrs={'rows': '10'})))