summaryrefslogtreecommitdiff
path: root/templates/apps/name/name.html
blob: dce20283b640821e18e759d7ae3e993e8075ed38 (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 id="description" class="ui-widget infopanel">
       {% autoescape off %}
	   <p class="description">{{name.description|safe}}</p>
	   {% endautoescape %}
	</div>
	{% endif %}
	{% if memberships and render.invite %}
	<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>
		{% empty %}
		<p>No members yet...</p>
		{% endfor %}
	</div>
	{% endif %}
	{% if invitations and render.invite %}
	<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>{{i.email}} was invited to {{i.name.shortname}} {{i.timecreated|datehumanize}} by {{i.inviter}}.</div>
		      <div class="navlist" style="margin-top: 10px;">
		         <ul>
		            <li class="button"><a href="/invitation/{{i.id}}/cancel">Cancel</a></li>
		            <li class="button"><a href="/invitation/{{i.id}}/resend">Resend</a></li>
		         </ul>
		      </div>
		      <div class="clear"></div>
		   </div>
		</div>
		{% empty %}
		<p>There are no pending invitations. <a class="tip" title="Invite someone!" href="/name/{{name.id}}/invite">Invite someone!</a></p>
		{% endfor %}
	</div>
	{% endif %}
{% endblock %}