summaryrefslogtreecommitdiffstats
path: root/askbot/conf/sidebar_main.py
diff options
context:
space:
mode:
authorNoahY <yuttadhammo@yahoo.com>2011-07-29 13:20:55 +0530
committerNoahY <yuttadhammo@yahoo.com>2011-07-29 13:20:55 +0530
commite7c418296189bbb9d57f7450de61459d3af7b412 (patch)
treee888a328557387405d7de794228cd4584baebbc2 /askbot/conf/sidebar_main.py
parent8d1fef9afaac61122056f791a74f16a91618b29d (diff)
downloadaskbot-e7c418296189bbb9d57f7450de61459d3af7b412.tar.gz
askbot-e7c418296189bbb9d57f7450de61459d3af7b412.tar.bz2
askbot-e7c418296189bbb9d57f7450de61459d3af7b412.zip
sidebar settings for each view
Diffstat (limited to 'askbot/conf/sidebar_main.py')
-rw-r--r--askbot/conf/sidebar_main.py84
1 files changed, 84 insertions, 0 deletions
diff --git a/askbot/conf/sidebar_main.py b/askbot/conf/sidebar_main.py
new file mode 100644
index 00000000..012d8ace
--- /dev/null
+++ b/askbot/conf/sidebar_main.py
@@ -0,0 +1,84 @@
+"""
+Sidebar settings
+"""
+from askbot.conf.settings_wrapper import settings
+from askbot.deps.livesettings import ConfigurationGroup
+from askbot.deps.livesettings import values
+from django.utils.translation import ugettext as _
+
+SIDEBAR_MAIN = ConfigurationGroup(
+ 'SIDEBAR_MAIN',
+ _('Sidebar widget settings - main page'),
+ )
+
+settings.register(
+ values.LongStringValue(
+ SIDEBAR_MAIN,
+ 'SIDEBAR_MAIN_HEADER',
+ description = _('Custom sidebar header'),
+ default = '',
+ help_text = _(
+ 'Use this area to enter content at the TOP of the sidebar'
+ 'in HTML format. When using this option '
+ '(as well as the sidebar footer), please '
+ 'use the HTML validation service to make sure that '
+ 'your input is valid and works well in all browsers.'
+ )
+ )
+)
+
+settings.register(
+ values.BooleanValue(
+ SIDEBAR_MAIN,
+ 'SIDEBAR_MAIN_SHOW_AVATARS',
+ description = _('Show avatar block in sidebar'),
+ help_text = _(
+ 'Uncheck this if you want to hide the avatar '
+ 'block from the sidebar '
+ ),
+ default = True
+ )
+)
+
+settings.register(
+ values.BooleanValue(
+ SIDEBAR_MAIN,
+ 'SIDEBAR_MAIN_SHOW_TAG_SELECTOR',
+ description = _('Show tag selector in sidebar'),
+ help_text = _(
+ 'Uncheck this if you want to hide the options '
+ 'for choosing interesting and ignored tags '
+ ),
+ default = True
+ )
+)
+
+settings.register(
+ values.BooleanValue(
+ SIDEBAR_MAIN,
+ 'SIDEBAR_MAIN_SHOW_TAGS',
+ description = _('Show tag list/cloud in sidebar'),
+ help_text = _(
+ 'Uncheck this if you want to hide the tag '
+ 'cloud or tag list from the sidebar '
+ ),
+ default = True
+ )
+)
+
+settings.register(
+ values.LongStringValue(
+ SIDEBAR_MAIN,
+ 'SIDEBAR_MAIN_FOOTER',
+ description = _('Custom sidebar footer'),
+ default = '',
+ help_text = _(
+ 'Use this area to enter content at the BOTTOM of the sidebar'
+ 'in HTML format. When using this option '
+ '(as well as the sidebar header), please '
+ 'use the HTML validation service to make sure that '
+ 'your input is valid and works well in all browsers.'
+ )
+ )
+)
+