Skip to content

Commit

Permalink
Fix minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Costas Basdekis committed Oct 21, 2013
1 parent 7cdb142 commit 1a8649f
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion oscar/templates/oscar/catalogue/reviews/review_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<span class="divider">/</span>
</li>
<li>
<a href="{% url 'catalogue:reviews-list' product_slug=product.slug pk=product.pk %}">{% trans "Reviews" %}</a>
<a href="{% url 'catalogue:reviews-list' product_slug=product.slug product_pk=product.pk %}">{% trans "Reviews" %}</a>
<span class="divider">/</span>
</li>
{% endwith %}
Expand Down
4 changes: 2 additions & 2 deletions oscar/templates/oscar/catalogue/reviews/review_product.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h4 class="star-rating {{ product.rating|as_stars }}">
<i class="icon-star"></i>
<i class="icon-star"></i>

<small><a href="{% url 'catalogue:reviews-list' product_slug=product.slug pk=product.id %}">
<small><a href="{% url 'catalogue:reviews-list' product_slug=product.slug product_pk=product.id %}">
{% blocktrans count reviews|length as num_reviews %}
1 custom review
{% plural %}
Expand All @@ -40,7 +40,7 @@ <h4 class="star-rating {{ product.rating|as_stars }}">
<h4>
{% endif %}
{% if not product|has_review_by:user %}
<a id="write_review" href="{% url 'catalogue:reviews-add' product_slug=product.slug pk=product.id %}#addreview" class="btn btn-success btn-small">
<a id="write_review" href="{% url 'catalogue:reviews-add' product_slug=product.slug product_pk=product.id %}#addreview" class="btn btn-success btn-small">
{% trans "Write a review" %}
</a>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion oscar/templates/oscar/customer/anon_order.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h3>{% trans 'Order contents' %}</h3>
<td>{{ line.line_price_before_discounts_excl_tax|currency:order.currency }}</td>
<td>{{ line.line_price_before_discounts_incl_tax|currency:order.currency }}</td>
<td>
<a href="{% url 'catalogue:reviews-add' product_slug=line.product.slug pk=line.product.id %}" class="btn btn-primary">{% trans 'Write a review' %}</a>
<a href="{% url 'catalogue:reviews-add' product_slug=line.product.slug product_pk=line.product.id %}" class="btn btn-primary">{% trans 'Write a review' %}</a>
</td>
</tr>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion oscar/templates/oscar/customer/order/order_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<td>
<p><a href="{{ line.product.get_absolute_url }}">{{ line.description }}</a></p>
{% iffeature "reviews" %}
<a class="btn" href="{% url 'catalogue:reviews-add' product_slug=line.product.slug pk=line.product.id %}">{% trans 'Write a review' %}</a>
<a class="btn" href="{% url 'catalogue:reviews-add' product_slug=line.product.slug product_pk=line.product.id %}">{% trans 'Write a review' %}</a>
{% endiffeature %}
</td>
<td>{{ line.est_dispatch_date|default:"-" }}</td>
Expand Down
2 changes: 1 addition & 1 deletion oscar/templates/oscar/dashboard/partners/partner_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h1>{% trans "Partner management" %}</h1>
<li><a href="{% url 'dashboard:partner-manage' pk=partner.pk %}">{% trans "Manage partner and users" %}</a></li>
<li><a href="{% url 'dashboard:partner-delete' pk=partner.pk %}">{% trans "Delete partner" %}</a></li>
<li><a href="{% url 'dashboard:partner-user-select' partner_pk=partner.pk %}">{% trans "Link an existing user" %}</a></li>
<li><a href="{% url 'dashboard:partner-user-create' partner_pk= partner.pk %}">{% trans "Link a new user" %}</a></li>
<li><a href="{% url 'dashboard:partner-user-create' partner_pk=partner.pk %}">{% trans "Link a new user" %}</a></li>
</ul>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion oscar/templates/oscar/dashboard/reviews/review_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h3 class="pull-left"><i class="icon-thumbs-up icon-large"></i>{{ description }}
{% endif %}
<td>
{% if not review.is_anonymous %}
<a href="{% c 'dashboard:user-detail' pk=review.user.id %}">{{ review.review_name }}</a>
<a href="{% url 'dashboard:user-detail' pk=review.user.id %}">{{ review.review_name }}</a>
{% else %}
{{ review.name }}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion sites/demo/templates/catalogue/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h3>{% trans "Product Information" %}</h3>
{% if not reviews %}
<p class="well">
{% trans "This product does not have any reviews yet" %} -
<a href="{% url 'catalogue:reviews-add' product.slug product.id %}#addreview">{% trans "be the first to write one" %}</a>.
<a href="{% url 'catalogue:reviews-add' product_slug=product.slug product_pk=product.id %}#addreview">{% trans "be the first to write one" %}</a>.
</p>
{% else %}
{% for review in reviews|slice:":3" %}
Expand Down
2 changes: 1 addition & 1 deletion sites/demo/templates/catalogue/partials/review_totals.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div id="reviews" class="review-title">
<h3>{% trans "Customer Reviews" %}</h3>
<a id="write_review" href="{% url 'catalogue:reviews-add' product.slug product.id %}#addreview" class="btn">{% trans "Add a review" %}</a>
<a id="write_review" href="{% url 'catalogue:reviews-add' product_slug=product.slug product_pk=product.id %}#addreview" class="btn">{% trans "Add a review" %}</a>
<p class="star-rating {{ product.rating|as_stars }}">
<i class="icon-star"></i>
<i class="icon-star"></i>
Expand Down

0 comments on commit 1a8649f

Please sign in to comment.