{% extends 'base.html' %} {% block title %}DistributedChats{% endblock %} {% block content %}
{% if active_channel %}
{% for m in messages %} {% with receiver=user.username, message = m, chan = active_channel.channel_id %} {% include 'message.html' %} {% endwith %} {% endfor %}
{% else %} {% endif %}
{% endblock %}