{% extends 'jinja_master/master.html' %}
{% block title %}{{user.display_name}} / Profile{% endblock %}
{% block header %}{{user.display_name}} ({{user.username}}){% endblock %}
{% block extra_css %}
<link rel="stylesheet" type="text/css"
href="{{g.app_static('css/user_profile.css')}}"/>
{% endblock %}
{% block content %}
{% if user.preferences.email_address %}
{{lib.gravatar(user)}}
{% endif %}
{{c.project.description_html|safe}}
<div class="project-list">
<b>Projects</b>
<ul>
{% for p in user.my_projects() %}
<li>
<a class="project-name" href="{{p.url()}}">{{p.name}}</a>
</li>
{% endfor %}
</ul>
</div>
{% if c.user.username == user.username %}
<div class="address-list">
<b>Email Addresses</b>
<ul>
{% for email in user.email_addresses %}
<li>
{{lib.email_gravatar(email, size=24)}}
{% if email == user.preferences.email_address %}
<span class="prime email-address">{{email}}</span>
{% else %}
<span class="email-address">{{email}}</span>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<div class="openid-list">
<b>OpenIDs</b>
<ul>
{% for openid in user.open_ids %}
<li>
<span class="openid">{{openid}}</span>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endblock %}