summaryrefslogtreecommitdiffstats
path: root/askbot/conf/sidebar_question.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_question.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_question.py')
-rw-r--r--askbot/conf/sidebar_question.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/askbot/conf/sidebar_question.py b/askbot/conf/sidebar_question.py
index ffe2f783..8d38692a 100644
--- a/askbot/conf/sidebar_question.py
+++ b/askbot/conf/sidebar_question.py
@@ -27,6 +27,15 @@ settings.register(
)
settings.register(
+ values.BooleanValue(
+ SIDEBAR_QUESTION,
+ 'QUESTION_PAGE_TOP_BANNER_ANON_ONLY',
+ default=False,
+ description=_('Show above only to anonymous users'),
+ )
+)
+
+settings.register(
values.LongStringValue(
SIDEBAR_QUESTION,
'QUESTION_PAGE_ANSWER_BANNER',
@@ -42,6 +51,16 @@ settings.register(
)
settings.register(
+ values.BooleanValue(
+ SIDEBAR_QUESTION,
+ 'QUESTION_PAGE_ANSWER_BANNER_ANON_ONLY',
+ default=False,
+ description=_('Show above only to anonymous users'),
+ )
+)
+
+
+settings.register(
values.LongStringValue(
SIDEBAR_QUESTION,
'SIDEBAR_QUESTION_HEADER',
@@ -60,6 +79,15 @@ settings.register(
settings.register(
values.BooleanValue(
SIDEBAR_QUESTION,
+ 'SIDEBAR_QUESTION_HEADER_ANON_ONLY',
+ default=False,
+ description=_('Show above only to anonymous users')
+ )
+)
+
+settings.register(
+ values.BooleanValue(
+ SIDEBAR_QUESTION,
'SIDEBAR_QUESTION_SHOW_TAGS',
description = _('Show tag list in sidebar'),
help_text = _(
@@ -113,3 +141,11 @@ settings.register(
)
)
+settings.register(
+ values.BooleanValue(
+ SIDEBAR_QUESTION,
+ 'SIDEBAR_QUESTION_FOOTER_ANON_ONLY',
+ default=False,
+ description=_('Show above only to anonymous users')
+ )
+)