blob: 56d4229b197b5a7a86b0276e2bbd1cea3a05f596 (
plain)
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
|
{% extends "tree.html" %}
{% load datehumanize %}
{% load userdisplay %}
{% block widgets %}
$("#memberships").accordion({
header: 'h3',
collapsible: true,
active: false
});
$("#invitations").accordion({
header: 'h3',
collapsible: true,
active: false
});
{% endblock %}
{% block content %}
{% if not name %}
<h1>This is the top of the namespace</h1>
{% endif %}
{% if name.description %}
<div class="ui-widget">
<div class="ui-state-highlight ui-corner-all infopanel">
{% autoescape off %}
<p class="description">{{name.description|safe}}</p>
{% endautoescape %}
</div>
</div>
{% endif %}
{% if memberships %}
<h3>Members</h3>
<div id="memberships">
{% for m in memberships.all %}
<div id="m{{m.id}}" class="{{m.status}}">
<h3 class="listheader">{{m.user|lastidentifier}}</h3>
<div>{{m.user|userdisplay}} ({{m.user|lastidentifier}}) became a member of {{name.shortname}} {{m.timecreated|datehumanize}}.</div>
</div>
{% endfor %}
</div>
{% endif %}
{% if invitations %}
<h3>Pending invitations</h3>
<div id="invitations">
{% for i in invitations.all %}
<div id="m{{m.id}}">
<h3 class="listheader">{{i.email}}</h3>
<div>
<div class="navlist" style="margin-top: -10px;">
<ul>
<li style="float: right;"><a class="tip" title="Cancel invitation" href="/invitation/{{i.id}}/cancel"><span class="ui-icon ui-icon-trash"></span></a></li>
<li style="float: right;"><a class="tip" title="Resend invitation" href="/invitation/{{i.id}}/resend"><span class="ui-icon ui-icon-mail-closed"></span></a></li>
</ul>
</div>
<div class="clear"></div>
<div>{{i.email}} was invited to {{i.name.shortname}} {{i.timecreated|datehumanize}} by {{i.inviter}}.</div>
</div>
</div>
{% empty %}
<p>There are no pending invitations.{% if render.invite %}<a class="tip" title="Invite user" href="/name/{{name.id}}/invite">Invite someone!</a>{% endif %}</p>
{% endfor %}
</div>
{% endif %}
{% endblock %}
|