]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/sidebar.py
1f33df9e15483646bad23cb125c4c4ec68197a1b
[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.", 10, True)
5
6 SIDEBAR_UPPER_SHOW = Setting('SIDEBAR_UPPER_SHOW', True, SIDEBAR_SET, dict(
7 label = "Show Upper Block",
8 help_text = "Check if your pages should display the upper sidebar block.",
9 required=False))
10
11
12 SIDEBAR_UPPER_TEXT = Setting('SIDEBAR_UPPER_TEXT',
13 u"""
14 ## [Try WebFaction](http://www.webfaction.com?affiliate=osqa)
15
16 We recommend [**WebFaction**](http://www.webfaction.com?affiliate=osqa) \
17 for hosting OSQA. Their affordable, reliable servers have everything you need! \
18 [Step-by-step instructions...](http://wiki.osqa.net/display/docs/Installing+OSQA+on+WebFaction)
19 """, SIDEBAR_SET, dict(
20 label = "Upper Block Content",
21 help_text = " The upper sidebar block. ",
22 widget=Textarea(attrs={'rows': '10'})))
23
24
25 SIDEBAR_LOWER_SHOW = Setting('SIDEBAR_LOWER_SHOW', True, SIDEBAR_SET, dict(
26 label = "Show Lower Block",
27 help_text = "Check if your pages should display the lower sidebar block.",
28 required=False))
29
30 SIDEBAR_LOWER_TEXT = Setting('SIDEBAR_LOWER_TEXT',
31 u"""
32 ## Learn more about OSQA
33
34 The [**OSQA website**](http://www.osqa.net/) and [**OSQA wiki**](http://wiki.osqa.net/) \
35 are also great resources to help you learn more about the OSQA open source Q&A system!
36 """, SIDEBAR_SET, dict(
37 label = "Lower Block Content",
38 help_text = " The lower sidebar block. ",
39 widget=Textarea(attrs={'rows': '10'})))