do not show availability dates in shop index

This commit is contained in:
Thomas Steen Rasmussen 2016-06-01 18:42:10 +02:00
parent 8369c6b38a
commit 68bc503b94

View file

@ -28,14 +28,13 @@
<tr>
<th>Product</th>
<th>Category</th>
<th>Availability</th>
<th>Price</th>
</tr>
</thead>
<tbody>
{% for product in products %}
<tr {% if not product.is_available %}class="mute"{% endif %}>
<tr {% if not product.is_available %}class="text-muted"{% endif %}>
<td>
<a href="{% url 'shop:product_detail' slug=product.slug %}">
{{ product.name }}
@ -44,12 +43,6 @@
<td>
{{ product.category }}
</td>
<td>
{{ product.available_in.lower|date:"Y-m-d H:i" }}
{% if product.available_in.upper %}
- {{ product.available_in.upper|date:"Y-m-d H:i" }}
{% endif %}
</td>
<td>
<div class="pull-right">
{{ product.price|currency }}
@ -57,7 +50,6 @@
</td>
</tr>
{% endfor %}
</tbody>
</table>