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.",
24 SIDEBAR_UPPER_TEXT = Setting('SIDEBAR_UPPER_TEXT',
26 [![WebFaction logo][2]][1]
27 ## [Reliable OSQA Hosting][1]
29 We recommend [**WebFaction**][1] for OSQA hosting. For \
30 under $10/month their reliable servers get the job done. See our \
31 [**step-by-step setup guide**](http://wiki.osqa.net/display/docs/Installing+OSQA+on+WebFaction).
33 [1]: http://www.webfaction.com?affiliate=osqa
34 [2]: /m/default/media/images/webfaction.png""", SIDEBAR_SET, dict(
35 label = "Upper Block Content",
36 help_text = " The upper sidebar block. ",
37 widget=Textarea(attrs={'rows': '10'})))
40 SIDEBAR_LOWER_SHOW = Setting('SIDEBAR_LOWER_SHOW', True, SIDEBAR_SET, dict(
41 label = "Show Lower Block",
42 help_text = "Check if your pages should display the lower sidebar block.",
45 SIDEBAR_LOWER_TEXT = Setting('SIDEBAR_LOWER_TEXT',
47 ## Learn more about OSQA
49 The [**OSQA website**](http://www.osqa.net/) and [**OSQA wiki**](http://wiki.osqa.net/) \
50 are great resources to help you learn more about the OSQA open source Q&A system. \
51 [**Join the OSQA chat!**](http://meta.osqa.net/question/79/is-there-an-online-chat-room-or-irc-channel-for-osqa#302)
52 """, SIDEBAR_SET, dict(
53 label = "Lower Block Content",
54 help_text = " The lower sidebar block. ",
55 widget=Textarea(attrs={'rows': '10'})))