summaryrefslogtreecommitdiffstats
path: root/askbot/templates/main_page/sidebar.html
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/templates/main_page/sidebar.html
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/templates/main_page/sidebar.html')
-rw-r--r--askbot/templates/main_page/sidebar.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/templates/main_page/sidebar.html b/askbot/templates/main_page/sidebar.html
index 7acbe091..610d2b60 100644
--- a/askbot/templates/main_page/sidebar.html
+++ b/askbot/templates/main_page/sidebar.html
@@ -1,6 +1,6 @@
{% import "macros.html" as macros %}
-{% if settings.SIDEBAR_MAIN_HEADER %}
+{% if 'SIDEBAR_MAIN_HEADER'|show_block_to(request.user) %}
<div class="box">
{{ settings.SIDEBAR_MAIN_HEADER }}
</div>
@@ -22,7 +22,7 @@
{% include "widgets/related_tags.html" %}
{% endif %}
-{% if settings.SIDEBARE_MAIN_FOOTER %}
+{% if 'SIDEBAR_MAIN_FOOTER'|show_block_to(request.user) %}
<div class="box">
{{ settings.SIDEBAR_MAIN_FOOTER }}
</div>