Course resume page: hide a masonry bloc if no content (fix)

This commit is contained in:
Mathieu Jaumotte 2022-01-12 17:37:49 +01:00
parent 34ff91979b
commit 782e098e31

View File

@ -55,6 +55,7 @@
</div> </div>
{% endif %} {% endif %}
{% if accompanyingCourse.locationStatus != 'none' %}
<div class="mbloc col col-sm-6 col-lg-4"> <div class="mbloc col col-sm-6 col-lg-4">
<div class="location"> <div class="location">
{% if accompanyingCourse.locationStatus == 'person' %} {% if accompanyingCourse.locationStatus == 'person' %}
@ -63,12 +64,10 @@
{% elseif accompanyingCourse.locationStatus == 'address' %} {% elseif accompanyingCourse.locationStatus == 'address' %}
<h4>{{ 'This course has a temporarily location'|trans }}</h4> <h4>{{ 'This course has a temporarily location'|trans }}</h4>
{% endif %} {% endif %}
{% if accompanyingCourse.locationStatus != 'none' %}
{{ accompanyingCourse.location|chill_entity_render_box }} {{ accompanyingCourse.location|chill_entity_render_box }}
</div>
</div>
{% endif %} {% endif %}
</div>
</div>
{% if accompanyingCourse.pinnedComment is not empty %} {% if accompanyingCourse.pinnedComment is not empty %}
<div class="mbloc col col-sm-6 col-lg-8"> <div class="mbloc col col-sm-6 col-lg-8">