]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/sidebar.py
e588512ff82c456a0e4193fa4f4999bec241b28f
[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 ## [Reliable OSQA Hosting](http://www.webfaction.com?affiliate=osqa)
15
16 We recommend [**WebFaction**](http://www.webfaction.com?affiliate=osqa) \
17 for OSQA hosting. For under $10/month their reliable servers get the job done. See our \
18 [**step-by-step setup guide**](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 great resources to help you learn more about the OSQA open source Q&A system. \
36 [**Join the OSQA chat!**](http://meta.osqa.net/question/79/is-there-an-online-chat-room-or-irc-channel-for-osqa#302)
37 """, SIDEBAR_SET, dict(
38 label = "Lower Block Content",
39 help_text = " The lower sidebar block. ",
40 widget=Textarea(attrs={'rows': '10'})))