{% from "util.html" import render_message %}
Slack Export - #{{ name }}
{% if not no_external_references %}
{% endif %}
{% if not no_sidebar %}
Public Channels
{% for channel in channels %}
# {{ channel }}
{% endfor %}
Private Channels
{% for group in groups %}
🔒 {{ group }}
{% endfor %}
Direct Messages
{% for dm in dm_users %}
👤 {{ dm["users"][0].real_name if dm["users"][0].real_name else dm["users"][0].name }} {% if dm["users"][1] %}, {{ dm["users"][1].real_name if dm["users"][1].real_name else dm["users"][1].name }}{% endif %}
{% endfor %}
Group Direct Messages
{% for mpim in mpim_users %}
👥 {% for user in mpim["users"] %} {{ user.real_name if user.real_name else user.name }}, {% endfor %}
{% endfor %}
{% endif %}
{% for message in messages %} {{render_message(message, None, no_external_references)}} {% endfor %}