[FIX] website_event: fix event card body in card-based display

When using the card-based display you may have the top of card body that is
not at the same height across a given row. This can be seen notably if some
cards have a footer and some other not, if one event is not yet registrable.

One drawback is that using the "show template" option displays the template
(category) name incorrectly. It should be part above the event image, part
below it. Without this fix it may be set completely below the image, leading
to incoherent row display.

LINKS

Related to testing of EventOnline
Task ID-2314778
Fwd port of PR #55625
PR #55642
This commit is contained in:
Thibault Delavallée
2020-08-13 06:30:33 +00:00
parent 85208bc51b
commit 93bdf893cc
@@ -204,7 +204,9 @@
</t>
</div>
</header>
<div t-attf-class="#{opt_events_list_columns and 'col-12' or 'col'}">
<div t-att-class="'%s %s' % (
opt_events_list_columns and 'col-12' or 'col',
opt_events_list_columns and event.event_registrations_open and not event.event_registrations_sold_out and 'h-100' or '')">
<!-- Body -->
<main t-attf-class="#{opt_events_list_cards and 'card-body' or (opt_events_list_columns and 'py-3' or 'px-4')}">
<!-- Title -->