{# this macro needs to be included "with context" valid and accessable vars needed: request conf csrf_input #} {% import "plainui/components/function_btns.html" as fbtns with context%} {% macro list(rooms, msg_none=_("no rooms available.")) -%} {% if rooms %} {% else %}

{{ msg_none }}

{% endif %} {%- endmacro %} {% macro list_el(room) -%} {% set link = url('plainui:room', room_slug=room.slug) %} {% set color="white" %}
  • {{ icon(room.room_type) }} {{ room.name }} {% if room.capacity and room.capacity != None and room.capacity > 0 %} {{ icon("capacity") }} {%- if room.occupants and room.occupants != None -%} {{ room.occupants ~ ' / '}} {%- endif -%} {{ room.capacity }} {% endif %} {{ fbtns.share(link, color=color) }} {{ fbtns.report(link, color=color) }}
  • {%- endmacro %} {%- macro icon(type) -%} {% if type=="lecturehall" %} {% elif type=="bbb" %} {% elif type=="stage" %} {% elif type=="workshop" %} {% elif type=="workadventure" %} {% elif type=="capacity" %} {% else %} {% endif %} {%- endmacro -%}