1 from base import Setting, SettingSet
2 from django.forms.widgets import Textarea
3 from django.utils.translation import ugettext_lazy as _
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)
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."),
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."),
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.",
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.",
28 SIDEBAR_UPPER_TEXT = Setting('SIDEBAR_UPPER_TEXT',
30 [![WebFaction logo][2]][1]
31 ## [Reliable OSQA Hosting][1]
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).
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'})))
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.",
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.",
54 SIDEBAR_LOWER_TEXT = Setting('SIDEBAR_LOWER_TEXT',
56 ## Learn more about OSQA
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'})))