Parent: [3abb2e] (diff)

Child: [462c18] (diff)

Download this file

user_index.html    56 lines (50 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{% 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 %}