diff options
-rw-r--r-- | askbot/media/style/style.less | 7 | ||||
-rw-r--r-- | askbot/templates/question.html | 6 | ||||
-rw-r--r-- | askbot/templates/question/content.html | 2 |
3 files changed, 11 insertions, 4 deletions
diff --git a/askbot/media/style/style.less b/askbot/media/style/style.less index 70808714..954bc378 100644 --- a/askbot/media/style/style.less +++ b/askbot/media/style/style.less @@ -3195,6 +3195,13 @@ ins .post-tag, ins p, ins { background-color: #E6F0A2; } +div.banner ins { + /* a hack for google adwords + * todo: make rule above more specific + * and remove this one */ + background: transparent; +} + /* ----- Red Popup notification ----- */ .vote-notification { diff --git a/askbot/templates/question.html b/askbot/templates/question.html index 74e101b2..98cb2502 100644 --- a/askbot/templates/question.html +++ b/askbot/templates/question.html @@ -265,9 +265,9 @@ </script> {% endblock %} {% block content %} - <div> - {{ settings.QUESTION_PAGE_TOP_BANNER|safe }} - </div> + {% if settings.QUESTION_PAGE_TOP_BANNER %} + <div class="banner">{{ settings.QUESTION_PAGE_TOP_BANNER|safe }}</div> + {% endif %} {% if is_cacheable %} {% cache long_time "thread-content-html" thread.id %} {% include "question/content.html" %} diff --git a/askbot/templates/question/content.html b/askbot/templates/question/content.html index 4481fb9a..467f0217 100644 --- a/askbot/templates/question/content.html +++ b/askbot/templates/question/content.html @@ -13,7 +13,7 @@ {% for answer in answers %} {% if answers|length > 1 and loop.index == 2 %} - {{ settings.QUESTION_PAGE_ANSWER_BANNER|safe }} + <div class="banner">{{ settings.QUESTION_PAGE_ANSWER_BANNER|safe }}</div> {% endif %} {% include "question/answer_card.html" %} {% endfor %} |