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> <tr>
<th>Product</th> <th>Product</th>
<th>Category</th> <th>Category</th>
<th>Availability</th>
<th>Price</th> <th>Price</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for product in products %} {% for product in products %}
<tr {% if not product.is_available %}class="mute"{% endif %}> <tr {% if not product.is_available %}class="text-muted"{% endif %}>
<td> <td>
<a href="{% url 'shop:product_detail' slug=product.slug %}"> <a href="{% url 'shop:product_detail' slug=product.slug %}">
{{ product.name }} {{ product.name }}
@ -44,12 +43,6 @@
<td> <td>
{{ product.category }} {{ product.category }}
</td> </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> <td>
<div class="pull-right"> <div class="pull-right">
{{ product.price|currency }} {{ product.price|currency }}
@ -57,7 +50,6 @@
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>