fix: schedule hours merging
This commit is contained in:
parent
4817bc216d
commit
9c403260b7
2 changed files with 25 additions and 30 deletions
|
|
@ -106,7 +106,7 @@
|
|||
<div class="schedule-category">
|
||||
<div class="schedule-category-header" title="Déroulez">
|
||||
<div class="schedule-category-name">
|
||||
{{ item.name }} <span class="separator">-</span> {{ item.description }}
|
||||
{{ item.name }} {% if item.description is not empty %}<span class="separator">-</span> {{ item.description }}{% endif %}
|
||||
</div>
|
||||
<svg class="schedule-category-collapse-icon"
|
||||
aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
||||
|
|
@ -115,7 +115,7 @@
|
|||
</div>
|
||||
<div class="schedule-category-table">
|
||||
<div class="schedule-category-days-container">
|
||||
{% for when in item.when %}
|
||||
{# {% for when in item.when %}
|
||||
<div class="schedule-category-day-container">
|
||||
<div class="schedule-category-day">
|
||||
{{ when.day }}
|
||||
|
|
@ -124,8 +124,8 @@
|
|||
{{ when.from }} <span class="separator">-</span> {{ when.to }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{# {% for when in item.when %}
|
||||
{% endfor %} #}
|
||||
{% for when in item.when %}
|
||||
<div class="schedule-category-day-container">
|
||||
<div class="schedule-category-day">
|
||||
{{ when.day }}
|
||||
|
|
@ -133,12 +133,12 @@
|
|||
<div class="schedule-category-hours">
|
||||
{% for i in when.hours %}
|
||||
<span>
|
||||
{{ i.from }} <span class="separator">-</span> {{ i.to }}
|
||||
{{ i.from }} <span class="separator">-</span> {{ i.to }}{% if not loop.last %},{% endif %}
|
||||
</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %} #}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue