Source

django-committees / committees / templates / committees / profile.html

{% extends "base.html" %}

{% block title %}{{ profile }}{% endblock %}

{% block content %}
    
    <h1>{{ profile }}{% if perms.committees.change_profile %} <a class='edit' href='{% url admin:committees_profile_change profile.id %}'>(Edit)</a>{% endif %}-     {{ profile.email }}</h1>
    <div class="description">{{ profile.description }}</div>
    <h2>Committees</h2>
    
    <ul>
    {% for member in profile.committee_members.all %}
        <li><a href='{% url view_committee member.committee.slug %}'>{{ member.committee }}</a></li>
    {% endfor %}
    </ul>
    
{% endblock %}