Merge pull request 'no need to show rower box, if no rower can particiapte' (#936) from hide-box into main
Reviewed-on: #936
This commit is contained in:
commit
4134b2a65b
@ -217,7 +217,7 @@
|
|||||||
{% set amount_cur_rower = event.rower | length %}
|
{% set amount_cur_rower = event.rower | length %}
|
||||||
{% if event.cancelled %}
|
{% if event.cancelled %}
|
||||||
{{ macros::box(header='Absage', bg='[#f43f5e]', participants=event.rower, trip_details_id=event.trip_details_id, allow_removing="manage_events" in loggedin_user.roles) }}
|
{{ macros::box(header='Absage', bg='[#f43f5e]', participants=event.rower, trip_details_id=event.trip_details_id, allow_removing="manage_events" in loggedin_user.roles) }}
|
||||||
{% else %}
|
{% elif event.max_people > 0 %}
|
||||||
{{ macros::box(participants=event.rower, empty_seats=event.max_people - amount_cur_rower, bg='primary-100', color='black', trip_details_id=event.trip_details_id, allow_removing="manage_events" in loggedin_user.roles) }}
|
{{ macros::box(participants=event.rower, empty_seats=event.max_people - amount_cur_rower, bg='primary-100', color='black', trip_details_id=event.trip_details_id, allow_removing="manage_events" in loggedin_user.roles) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# --- END List Rowers --- #}
|
{# --- END List Rowers --- #}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user