Permalink
Browse files

Slight tidy-up of reviews on catalogue detail page

  • Loading branch information...
1 parent 00ad5fe commit e3e7fccc8326d29de34384a18060d61750579fb1 @codeinthehole codeinthehole committed May 31, 2012
Showing with 15 additions and 23 deletions.
  1. +15 −23 oscar/templates/catalogue/detail.html
@@ -13,13 +13,17 @@
<a href="{% url promotions:home %}">Home</a>
<span class="divider">/</span>
</li>
- <li>
- {% with category=product.categories.all.0 %}
- <a href="{{ category.get_absolute_url }}">{{ category.name }}</a>
- <span class="divider">/</span>
- {% endwith %}
- </li>
- <li class="active"><a href=".">{{ product.get_title }}</a></li>
+ {% with category=product.categories.all.0 %}
+ {% for c in category.get_ancestors %}
+ <li>
+ <a href="{{ c.get_absolute_url }}">{{ c.name }}</a>
+ <span class="divider">/</span>
+ </li>
+ {% endfor %}
+ <li class="active">
+ <a href=".">{{ product.title }}</a>
+ </li>
+ {% endwith %}
</ul>
{% endblock %}
@@ -51,7 +55,10 @@
{% endfor %}
</ul>
{% else %}
- <p class="star">No Rating <a href="{% url catalogue:reviews-add product.slug product.id %}#addreview">Add review</a></p>
+ <p class="star">No Rating
+
+ <a href="{% url catalogue:reviews-add product.slug product.id %}#addreview">Add review</a>
+ </p>
{% endif %}
<p><strong>Product Code:</strong> <code>{{ product.upc }}</code></p>
@@ -116,21 +123,6 @@
</table>
{% endblock %}
- {% block product_categories %}
- <div class="sub-header">
- <h2>Reviews</h2>
- </div>
- <ul class="pills">
- {% for category in product.categories.all %}
- <li>
- {% for c in category.get_ancestors %}
- {% if not forloop.first %} &gt; {% endif %}<a href="{{ c.get_absolute_url }}">{{ c.name }}</a>
- {% endfor %}
- </li>
- {% endfor %}
- </ul>
- {% endblock %}
-
{% block product_review %}
<section>
<div id="reviews" class="sub-header">

0 comments on commit e3e7fcc

Please sign in to comment.