summaryrefslogtreecommitdiffstats
path: root/askbot/conf/sidebar_profile.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-24 05:31:29 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-24 05:31:29 -0400
commit98bfb63992324a717fa8ac550c6ff3ec1a7e3bc7 (patch)
tree74b1f048e544b7924fbc083ab91875acab0aa448 /askbot/conf/sidebar_profile.py
parenta0ba548049366cc37ad91f2824b119a1f45591e5 (diff)
downloadaskbot-98bfb63992324a717fa8ac550c6ff3ec1a7e3bc7.tar.gz
askbot-98bfb63992324a717fa8ac550c6ff3ec1a7e3bc7.tar.bz2
askbot-98bfb63992324a717fa8ac550c6ff3ec1a7e3bc7.zip
added option to hide ad blocks from logged in users
Diffstat (limited to 'askbot/conf/sidebar_profile.py')
-rw-r--r--askbot/conf/sidebar_profile.py23
1 files changed, 8 insertions, 15 deletions
diff --git a/askbot/conf/sidebar_profile.py b/askbot/conf/sidebar_profile.py
index 948daa4a..a216de4b 100644
--- a/askbot/conf/sidebar_profile.py
+++ b/askbot/conf/sidebar_profile.py
@@ -16,8 +16,8 @@ SIDEBAR_PROFILE = ConfigurationGroup(
settings.register(
values.LongStringValue(
SIDEBAR_PROFILE,
- 'SIDEBAR_PROFILE_HEADER',
- description = _('Custom sidebar header'),
+ 'SIDEBAR_PROFILE',
+ description = _('Custom sidebar'),
default = '',
help_text = _(
'Use this area to enter content at the TOP of the sidebar'
@@ -25,23 +25,16 @@ settings.register(
'(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.LongStringValue(
+ values.BooleanValue(
SIDEBAR_PROFILE,
- 'SIDEBAR_PROFILE_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.'
- )
+ 'SIDEBAR_PROFILE_ANON_ONLY',
+ description=_('Show above only to anonymous users'),
+ default=False
)
)
-