do not show availability dates in shop index
This commit is contained in:
parent
8369c6b38a
commit
68bc503b94
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue