summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-29 23:28:48 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-29 23:28:48 -0400
commitf4454f1b900c5d54f9ad6f6c43203502883a094e (patch)
treedf9c3f627dc18b2f154f931393ad91a6a639f4ea
parent89da4175785a27edcd1a9b1985e662a83c95213c (diff)
downloadaskbot-f4454f1b900c5d54f9ad6f6c43203502883a094e.tar.gz
askbot-f4454f1b900c5d54f9ad6f6c43203502883a094e.tar.bz2
askbot-f4454f1b900c5d54f9ad6f6c43203502883a094e.zip
hopefully fixed yellow bg issue in google adwords
-rw-r--r--askbot/media/style/style.less7
-rw-r--r--askbot/templates/question.html6
-rw-r--r--askbot/templates/question/content.html2
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 %}