Pārlūkot izejas kodu

Fix template bug with offer upsell message

Wrong variable in blocktrans.  Also wrapped content in well block to
make a distinction from other content on the basket page
master
David Winterbottom 13 gadus atpakaļ
vecāks
revīzija
cf043e4621
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4
    2
      oscar/templates/oscar/basket/basket.html

+ 4
- 2
oscar/templates/oscar/basket/basket.html Parādīt failu

@@ -27,12 +27,14 @@
27 27
 {% endif %}
28 28
 
29 29
 {% if upsell_messages %}
30
-<h2>{% trans "You could be missing out on offers!" %}</h2>
30
+<div class="well">
31
+	<h2>{% trans "You could be missing out on offers!" %}</h2>
31 32
 	{% for upsell in upsell_messages %}
32 33
     {% blocktrans with message=upsell.message url=upsell.offer.get_absolute_url offer_name=upsell.offer.name %}
33
-	<div class="warning">{{ upsell_message }} to qualify for the <a href="{{ url }}">{{ offer_name }}</a> special offer</div>
34
+	<div class="warning">{{ message }} to qualify for the <a href="{{ url }}">{{ offer_name }}</a> special offer</div>
34 35
     {% endblocktrans %}
35 36
 	{% endfor %}
37
+</div>
36 38
 {% endif %}
37 39
 
38 40
 {% if not basket.is_empty %}

Notiek ielāde…
Atcelt
Saglabāt