From f4454f1b900c5d54f9ad6f6c43203502883a094e Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Fri, 29 Mar 2013 23:28:48 -0400 Subject: hopefully fixed yellow bg issue in google adwords --- askbot/media/style/style.less | 7 +++++++ askbot/templates/question.html | 6 +++--- 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 @@ {% endblock %} {% block content %} -
- {{ settings.QUESTION_PAGE_TOP_BANNER|safe }} -
+ {% if settings.QUESTION_PAGE_TOP_BANNER %} + + {% 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 }} + {% endif %} {% include "question/answer_card.html" %} {% endfor %} -- cgit v1.2.3-1-g7c22