mirror of
https://github.com/pretix/pretix.git
synced 2026-01-28 01:12:29 +00:00
Add anchors for products/categories
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user