]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/sidebar.py
031763a7632946ce08677c0e802629e4eb98cbb1
[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 [![WebFaction logo][2]][1]
15 ## [Reliable OSQA Hosting][1]
16
17 We recommend [**WebFaction**][1] for OSQA hosting. For \
18 under $10/month their reliable servers get the job done. See our \
19 [**step-by-step setup guide**](http://wiki.osqa.net/display/docs/Installing+OSQA+on+WebFaction).
20
21 [1]: http://www.webfaction.com?affiliate=osqa
22 [2]: /m/default/media/images/webfaction.png""", SIDEBAR_SET, dict(
23 label = "Upper Block Content",
24 help_text = " The upper sidebar block. ",
25 widget=Textarea(attrs={'rows': '10'})))
26
27
28 SIDEBAR_LOWER_SHOW = Setting('SIDEBAR_LOWER_SHOW', True, SIDEBAR_SET, dict(
29 label = "Show Lower Block",
30 help_text = "Check if your pages should display the lower sidebar block.",
31 required=False))
32
33 SIDEBAR_LOWER_TEXT = Setting('SIDEBAR_LOWER_TEXT',
34 u"""
35 ## Learn more about OSQA
36
37 The [**OSQA website**](http://www.osqa.net/) and [**OSQA wiki**](http://wiki.osqa.net/) \
38 are great resources to help you learn more about the OSQA open source Q&A system. \
39 [**Join the OSQA chat!**](http://meta.osqa.net/question/79/is-there-an-online-chat-room-or-irc-channel-for-osqa#302)
40 """, SIDEBAR_SET, dict(
41 label = "Lower Block Content",
42 help_text = " The lower sidebar block. ",
43 widget=Textarea(attrs={'rows': '10'})))