<ul class="list-unstyled">
    {% for member in cohort.members %}
        <li>
            {{ member.email }}
            <span class="label {% if member.user %}label-primary{% else %}{% if member.invited %}label-success{% else %}label-info{% endif %}{% endif %}">
                {% if member.user %}<i class="fa fa-fw fa-user"></i> {{ member.user }}{% else %}{% if member.invited %}invited{% else %}pending{% endif %}{% endif %}
            </span>
        </li>
    {% endfor %}
</ul>
