Child: [7af05e] (diff)

Download this file

user_index.html    60 lines (55 with data), 2.2 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
56
57
58
59
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />
<xi:include href="lib.html" />
<?python from allura.lib.security import has_project_access
from allura.model import Project ?>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>${user.display_name} / Profile</title>
<link rel="stylesheet" type="text/css"
href="${g.app_static('css/user_profile.css')}"/>
</head>
<body>
<h1 class="title">${user.display_name} (${user.username})</h1>
<div class="content">
<div class="row">
<div class="column grid_12">
<py:if test="user.preferences.email_address">${gravatar(user)} </py:if>
${Markup(c.project.description_html)}
<div class="project-list">
<b>Projects</b>
<ul>
<li py:for="p in user.my_projects()">
<a class="project-name" href="${p.url()}">${p.name}</a>
</li>
</ul>
</div>
<py:if test="c.user.username == user.username">
<div class="address-list">
<b>Email Addresses</b>
<ul>
<li py:for="email in user.email_addresses">
${email_gravatar(email, size=24)}
<span py:if="email == user.preferences.email_address" class="prime email-address">${email}</span>
<span py:if="email != user.preferences.email_address" class="email-address">${email}</span>
</li>
</ul>
</div>
<div class="openid-list">
<b>OpenIDs</b>
<ul>
<li py:for="openid in user.open_ids">
<span class="openid">${openid}</span>
</li>
</ul>
</div>
</py:if>
</div>
</div>
</div>
</body>
</html>