]> git.parisson.com Git - diggersdigest.git/commitdiff
fix price display
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 24 Sep 2015 14:50:02 +0000 (16:50 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 24 Sep 2015 14:50:02 +0000 (16:50 +0200)
app/templates/shop/includes/price.html

index 75ebf7564962ca72030babf4c280886c5dfaa442..0a56af1c9e4914ba8d0f8465f71e7e6fabe9a5be 100644 (file)
@@ -7,11 +7,11 @@
         {% if variation.has_price %}
             {% if product.available %}
              {% if not variation.unit_price and not category %}
-              <span class="price">{% trans "Price" %} : <a href="{% url 'page' 'about/contact-form' %}">{% trans "Make an offer" %}</a></span>
+              <span class="price">{% if not category %}{% trans "Price" %} : {% endif %}<a href="{% url 'page' 'about/contact-form' %}">{% trans "Make an offer" %}</a></span>
              {% elif not variation.unit_price and category %}
-              <span class="price">{% trans "Price" %} : {% trans "Make an offer" %}</span>
+              <span class="price">{% if not category %}{% trans "Price" %} : {% endif %}{% trans "Make an offer" %}</span>
              {% else %}
-              <span class="price">{% trans "Price" %} : {{ variation.unit_price|currency }}</span>
+              <span class="price">{% if not category %}{% trans "Price" %} : {% endif %}{{ variation.unit_price|currency }}</span>
              {% endif %}
             {% endif %}
         {% else %}