[00be62]: Allura / allura / ext / user_profile / templates / user_index.html Maximize Restore History

Download this file

user_index.html    65 lines (58 with data), 1.9 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
60
61
62
63
64
{% extends g.theme.master %}
{% block title %}{{user.display_name}} / Profile{% endblock %}
{% block header %}{{c.project.homepage_title}}{% endblock %}
{% block extra_css %}
<link rel="stylesheet" type="text/css"
href="{{g.app_static('css/user_profile.css')}}"/>
{% endblock %}
{% block head %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="feed.rss">
<link rel="alternate" type="application/atom+xml" title="Atom" href="feed.atom">
{% endblock %}
{% block actions %}
<a href="{{c.app.url}}feed.rss" title="Follow"><b data-icon="{{g.icons['feed'].char}}" class="ico {{g.icons['feed'].css}}"></b></a>
{% endblock %}
{% block content %}
{% if user.preferences.email_address %}
<p>{{lib.gravatar(user)}}</p>
{% endif %}
<div class="project-list grid-18">
<b>Projects</b>
<ul>
{% for p in user.my_projects() %}
{% if h.has_access(p, 'read')() %}
<li>
<a class="project-name" href="{{p.url()}}">{{p.name}}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% if c.user.username == user.username %}
<div class="address-list grid-18">
<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 grid-18">
<b>OpenIDs</b>
<ul>
{% for openid in user.open_ids %}
<li>
<span class="openid">{{openid}}</span>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endblock %}