Skip to content

Commit

Permalink
Merge pull request #1541 from afup/fix_planning
Browse files Browse the repository at this point in the history
correction affichage du planning
  • Loading branch information
agallou committed Sep 19, 2024
2 parents 56e0b84 + 5617d61 commit c163a06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Resources/views/blog/planning.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% for room in rooms %}
{% if slot[room.id] is defined %}
{% set rows = slot[room.id] %}
{% set numberOfRowForThisSlot = rows|length %}
{% set numberOfRowForThisSlot = rows|first.length / prevision %}

{% set hasConf = hasConf|merge({(room.name|trim):numberOfRowForThisSlot}) %}
{# Boucle pour afficher chaque événement dans la salle #}
Expand Down Expand Up @@ -98,4 +98,4 @@
<a class="planning-link" href="{{ app.request.getSchemeAndHttpHost() }}/event/{{ event.path }}/calendar">Créer mon planning personnalisé{% if events|length > 1 %} ({{ event.title }}){% endif %}</a>
<a class="planning-link" href="{{ app.request.getSchemeAndHttpHost() }}/event/{{ event.path }}/planning.ics">Télécharger le planning au format Ical{% if events|length > 1 %} ({{ event.title }}){% endif %}</a>
{% endfor %}
{% endif %}
{% endif %}

0 comments on commit c163a06

Please sign in to comment.