{{"Parking spaces"}}

 
{% if let Some(session) = session %}
{% endif %}
{% if !parking_spaces.is_empty() %}
Owned parking spaces
    {% for parking_space in parking_spaces -%}
  • {% if let Some(account) = account_by_id.get(parking_space.account_id) -%} {% if let Some(location_id) = parking_space.location_id -%} {% if let Some(location) = location_by_id.get(location_id) -%} {% if let Some(spot) = parking_space.spot -%}
    {% include "./single_parking_space.html" %} {% include "./parking_space_state.html" %}
    {% if parking_space.state == ParkingSpaceState::Verified %} {% endif %}
    {% endif %} {% endif %} {% endif %} {% endif %}
  • {% endfor %}
{% endif %} {% for parking_space_rent in parking_space_rents -%} {% if let Some(parking_space) = parking_space_by_id.get(parking_space_rent.parking_space_id) %} {% if parking_space.state == ParkingSpaceState::Verified || Some(parking_space.account_id.clone()) == account_id %} {% if let Some(account) = account_by_id.get(parking_space.account_id) %}
{{ account.login }}
{{ parking_space_rent.price }}
{% endif %} {% endif %} {% endif %} {% endfor -%}