{% extends 'rb/emails/base_email.txt' %}
{% block recipient %}{{ blocking.created_by_user.getFirstName() }}{% endblock %}

{% block email_body -%}
Your room blocking request has been {{ verb }} by a room manager.

Room: {{ blocked_room.room.full_name }}
Action: {{ verb }}
{%- if not blocked_room.state == blocked_room.State.rejected %}
Reason: {{ blocked_room.rejection_reason or '(none)' }}
{%- endif %}

You can view the details of your blocking here:
{{ url_for('rooms.blocking_details', blocking_id=blocking.id, _external=true) }}
{%- endblock %}

{% extends 'rb/emails/base_email.txt' %}
{% block recipient %}{{ blocking.created_by_user.getFirstName() }}{% endblock %}

{% block email_body -%}
Your room blocking request has been {{ verb }} by a room manager.

Room: {{ blocked_room.room.full_name }}
Action: {{ verb }}
{%- if blocked_room.state == blocked_room.State.rejected %}
Reason: {{ blocked_room.rejection_reason or '(none)' }}
{%- endif %}

You can view the details of your blocking here:
{{ url_for('rooms.blocking_details', blocking_id=blocking.id, _external=true) }}
{%- endblock %}

Fix invalid if condition in blocking notification
Fix invalid if condition in blocking notification
