{% for chat_room in chat_rooms %}
{{ chat_room.name }} {% if chat_room.is_protected %} {% endif %} {% if not chat_room.is_visible %} {% endif %} {% if USER %} {% if USER.user_type == 1 or (USER.user_type == 4 and USER.user_type in chat_room.allowed_users) or USER.id == chat_room.created_by %} {% if chat_room.status == 2 %} {% endif %} |
{% endif %} {% endif %}
{% if chat_room.description %}

{{ chat_room.description }}

{% else %}

Join with {{ chat_room.name }} chat room at {{SETTINGS.site_name}}. {% if chat_room.is_visible %} {% if chat_room.is_protected %} {{ chat_room.name }} is password protected chat room. You need {{ chat_room.name }} password to log in to the chat room. {% else %} {{ chat_room.name }} is public chat room. Everyone on {{SETTINGS.site_name}} will be able to join. {% endif %} {% else %} {{ chat_room.name }} is private chat room. Only people with the invite link will be able to join. {% if chat_room.is_protected %} {{ chat_room.name }} is password protected chat room. You need {{ chat_room.name }} password to log in to the chat room. {% endif %} {% endif %}

{% endif %}
{% endfor %}