Skip to content

Commit

Permalink
Show picture in event detail above text, not next to it
Browse files Browse the repository at this point in the history
Don’t use <div class="image content"> in order to avoid FUI standard design
for images.
  • Loading branch information
MacLake committed Apr 6, 2023
1 parent 2fa7e8a commit 8bb5e1f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions djangocms_events/templates/djangocms_events/event_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@
{{ event.name }}
</div>

<div class="image content">
{% if event.picture %}
<img class="image" alt="{% trans 'event' %}"
src="{{ event.picture|thumbnail_url:'event-detail' }}"
/>
{% endif %}
<div class="content">
<div class="description" style="flex: initial;"> {# avoid long lines #}
{% if event.picture %}
<img class="ui image" alt="{% trans 'event' %}"
src="{{ event.picture|thumbnail_url:'event-detail' }}"
/>
{% endif %}

<p>{{ event.calendar }}</p>
<p>
{% include "./include/date_time.html" %}
{% if event.location %}{{ event.location }}<br>{% endif %}
{% if event.organizer %}{% translate "Organiser:" %}
{{ event.organizer|default:'–' }}<br>{% endif %}
{{ event.organizer|default:'–' }}<br>{% endif %}
{% comment %}
{% if event.status %}{% translate "Status:" %} {{ event.status|lower|default:'–' }}<br>
{% endif %}
{% if event.status %}{% translate "Status:" %} {{ event.status|lower|default:'–' }}
<br>
{% endif %}
{% endcomment %}
{% if event.classification %}{% translate "Classification:" %}
{{ event.classification|default:'–'}}<br>{% endif %}
{{ event.classification|default:'–'}}<br>{% endif %}
{% if event.url %}{% translate "Website:" %} {{ event.url|default:'–'|urlize }}<br>
{% endif %}
</p>
Expand Down

0 comments on commit 8bb5e1f

Please sign in to comment.