]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/sidebar.py
a2b3f231a7df14e9b97ebcd4328289054fd5104b
[osqa.git] / forum / settings / sidebar.py
1 from base import Setting, SettingSet
2 from django.forms.widgets import Textarea
3 from django.utils.translation import ugettext_lazy as _
4
5 SIDEBAR_SET = SettingSet('sidebar', 'Sidebar content', "Enter contents to display in the sidebar. You can use markdown and some basic html tags.", 10, True)
6
7 SHOW_WELCOME_BOX = Setting('SHOW_WELCOME_BOX', True, SIDEBAR_SET, dict(
8 label = _("Show the Welcome box"),
9 help_text = _("Do you want to show the welcome box when a user first visits your site."),
10 required=False))
11
12 APP_INTRO = Setting('APP_INTRO', u'<p>Ask and answer questions, make the world better!</p>', SIDEBAR_SET, dict(
13 label = _("Application intro"),
14 help_text = _("The introductory page that is visible in the sidebar for anonymous users."),
15 widget=Textarea))
16
17
18 SIDEBAR_UPPER_SHOW = Setting('SIDEBAR_UPPER_SHOW', True, SIDEBAR_SET, dict(
19 label = "Show Upper Block",
20 help_text = "Check if your pages should display the upper sidebar block.",
21 required=False))
22
23 SIDEBAR_UPPER_DONT_WRAP = Setting('SIDEBAR_UPPER_DONT_WRAP', False, SIDEBAR_SET, dict(
24 label = "Don't Wrap Upper Block",
25 help_text = "Don't wrap upper block with the standard style.",
26 required=False))
27
28 SIDEBAR_UPPER_TEXT = Setting('SIDEBAR_UPPER_TEXT',
29 u"""
30 [![WebFaction logo][2]][1]
31 ## [Reliable OSQA Hosting][1]
32
33 We recommend [**WebFaction**][1] for OSQA hosting. For \
34 under $10/month their reliable servers get the job done. See our \
35 [**step-by-step setup guide**](http://wiki.osqa.net/display/docs/Installing+OSQA+on+WebFaction).
36
37 [1]: http://www.webfaction.com?affiliate=osqa
38 [2]: /m/default/media/images/webfaction.png""", SIDEBAR_SET, dict(
39 label = "Upper Block Content",
40 help_text = " The upper sidebar block. ",
41 widget=Textarea(attrs={'rows': '10'})))
42
43
44 SIDEBAR_LOWER_SHOW = Setting('SIDEBAR_LOWER_SHOW', True, SIDEBAR_SET, dict(
45 label = "Show Lower Block",
46 help_text = "Check if your pages should display the lower sidebar block.",
47 required=False))
48
49 SIDEBAR_LOWER_DONT_WRAP = Setting('SIDEBAR_LOWER_DONT_WRAP', False, SIDEBAR_SET, dict(
50 label = "Don't Wrap Lower Block",
51 help_text = "Don't wrap lower block with the standard style.",
52 required=False))
53
54 SIDEBAR_LOWER_TEXT = Setting('SIDEBAR_LOWER_TEXT',
55 u"""
56 ## Learn more about OSQA
57
58 The [**OSQA website**](http://www.osqa.net/) and [**OSQA wiki**](http://wiki.osqa.net/) \
59 are great resources to help you learn more about the OSQA open source Q&A system. \
60 [**Join the OSQA chat!**](http://meta.osqa.net/question/79/is-there-an-online-chat-room-or-irc-channel-for-osqa#302)
61 """, SIDEBAR_SET, dict(
62 label = "Lower Block Content",
63 help_text = " The lower sidebar block. ",
64 widget=Textarea(attrs={'rows': '10'})))