Skip to content

Commit 6333ea8

Browse files
committed
Improve mark-up on offer browsing page
Using well to break up content.
1 parent cf043e4 commit 6333ea8

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

oscar/templates/oscar/offer/detail.html

+5-7
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ <h1>{{ offer.name }}</h1>
3232
{% endif %}
3333

3434
{% if offer.description %}
35-
{{ offer.description|safe }}
35+
<div class="well">
36+
{{ offer.description|safe }}
37+
</div>
3638
{% endif %}
3739

3840
{% if upsell_message %}
@@ -45,17 +47,13 @@ <h3>{% trans "What you need to do" %}</h3>
4547
{% if products.count %}
4648
<section>
4749
<div class="mod">
48-
{% if page_obj %}
49-
{% include "partials/pagination.html" %}
50-
{% endif %}
50+
{% include "partials/pagination.html" %}
5151
<ol class="products four">
5252
{% for product in products %}
5353
<li>{% include "catalogue/partials/product.html" %}</li>
5454
{% endfor %}
5555
</ol>
56-
{% if page_obj %}
57-
{% include "partials/pagination.html" %}
58-
{% endif %}
56+
{% include "partials/pagination.html" %}
5957
</div>
6058
</section>
6159
{% else %}

oscar/templates/oscar/partials/pagination.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load display_tags %}
22
{% load i18n %}
33

4-
{% if total_pages > 1 %}
4+
{% if paginator.num_pages > 1 %}
55
<div>
66
<ul class="pager">
77
{% if page_obj.has_previous %}

0 commit comments

Comments
 (0)