Add anchors for products/categories

This commit is contained in:
Raphael Michel
2020-01-09 10:19:32 +01:00
parent 07d2463960
commit a1ad00a30c

View File

@@ -8,14 +8,15 @@
{% for tup in items_by_category %}
<section>
{% if tup.0 %}
<h3>{{ tup.0.name }}</h3>
<h3 id="category-{{ tup.0.id }}">{{ tup.0.name }}</h3>
{% if tup.0.description %}
<p>{{ tup.0.description|localize|rich_text }}</p>
{% endif %}
{% endif %}
{% for item in tup.1 %}
{% if item.has_variations %}
<details class="item-with-variations" {% if event.settings.show_variations_expanded %}open{% endif %}>
<details class="item-with-variations" {% if event.settings.show_variations_expanded %}open{% endif %}
id="item-{{ item.id }}">
<summary class="row-fluid product-row headline">
<div class="col-md-8 col-xs-12">
{% if item.picture %}
@@ -171,7 +172,7 @@
</div>
</details>
{% else %}
<div class="row-fluid product-row simple">
<div class="row-fluid product-row simple" id="item-{{ item.id }}">
<div class="col-md-8 col-xs-12">
{% if item.picture %}
<a href="{{ item.picture.url }}" class="productpicture"