Bläddra i källkod

Improve mark-up on offer browsing page

Using well to break up content.
master
David Winterbottom 13 år sedan
förälder
incheckning
6333ea83ea

+ 5
- 7
oscar/templates/oscar/offer/detail.html Visa fil

@@ -32,7 +32,9 @@
32 32
 	{% endif %}
33 33
 
34 34
     {% if offer.description %}
35
-    {{ offer.description|safe }}
35
+	<div class="well">
36
+		{{ offer.description|safe }}
37
+	</div>
36 38
     {% endif %}
37 39
 
38 40
     {% if upsell_message %}
@@ -45,17 +47,13 @@
45 47
     {% if products.count %}
46 48
 		<section>
47 49
 			<div class="mod">
48
-				{% if page_obj %}
49
-					{% include "partials/pagination.html" %}
50
-				{% endif %}
50
+				{% include "partials/pagination.html" %}
51 51
 				<ol class="products four">
52 52
 					{% for product in products %}
53 53
 					<li>{% include "catalogue/partials/product.html" %}</li>
54 54
 					{% endfor %}
55 55
 				</ol>
56
-				{% if page_obj %}
57
-					{% include "partials/pagination.html" %}
58
-				{% endif %}
56
+				{% include "partials/pagination.html" %}
59 57
 			</div>
60 58
 		</section>
61 59
     {% else %}

+ 1
- 1
oscar/templates/oscar/partials/pagination.html Visa fil

@@ -1,7 +1,7 @@
1 1
 {% load display_tags %}
2 2
 {% load i18n %}
3 3
 
4
-{% if total_pages > 1 %}
4
+{% if paginator.num_pages > 1 %}
5 5
 	<div>
6 6
 		<ul class="pager">
7 7
 			{% if page_obj.has_previous %}

Laddar…
Avbryt
Spara