diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-05-24 05:31:29 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-05-24 05:31:29 -0400 |
commit | 98bfb63992324a717fa8ac550c6ff3ec1a7e3bc7 (patch) | |
tree | 74b1f048e544b7924fbc083ab91875acab0aa448 /askbot/conf/sidebar_question.py | |
parent | a0ba548049366cc37ad91f2824b119a1f45591e5 (diff) | |
download | askbot-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.py | 36 |
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') + ) +) |