Skip to content

Commit

Permalink
Display message if no description
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jun 9, 2023
1 parent 2de1c50 commit 465d253
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/Resources/views/event/detail.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@
</div>
</div>

<div class="card-panel blue lighten-5">
{{ event.description | markdown | raw }}
</div>
{% if event.description %}
<div class="card-panel blue lighten-5">
{{ event.description | markdown | raw }}
</div>
{% else %}
<i>pas de description</i>
{% endif %}

{% if event.img %}
<img src="{{ event|img('imgFile', 'default') }}" class="materialboxed" style="max-width:50%" />
Expand Down

0 comments on commit 465d253

Please sign in to comment.