blob: 744948c90dafff537e698c3ba0e259cc0483608a (
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
|
{% extends "base.html" %}
{% block js %}
<script type="text/javascript">
$(function() {
$("#members").accordion({
header: 'h3'
});
$('#tree').jstree({
'json_data': {
'ajax': {
'url': function(n) {
if (n == -1) {
return {% if name %}"/rtree/"+{{name.id}}+".json"{% else %}"/rtree.json"{% endif %};
} else {
return "/ctree/"+n.attr('id')+".json";
}
}
},
"progressive_render" : true,
'animation': 0,
},
'plugins': ['themeroller','json_data']
});
});
</script>
{% endblock %}
{% block headline %}{% if name %}{{name.shortname}}{% else %}(){% endif %}{% endblock %}
{% block title %}COIP{% if name %} - {{name.shortname}}{% endif %}{% endblock %}
{% block main %}
<div style="float: left; width: 30%;">
{% if name and name.parent %}
<a href="/name/id/{{name.parent.id}}">.. (up one level)</a>
{% endif %}
<div style="height: 100%;" id="tree"></div>
</div>
<div style="float: right; width: 60%; padding-left: 20px;">
{% if name %}
<div class="ui-widget-content ui-corner-all infopanel">
<h3 style="float: left;">{{name}}</h3><a style="float: right;" href="/name/edit/id/{{name.id}}"><div class="ui-icon ui-icon-wrench"></div></a><div class="clear"/>
<p>{{name.description}}</p>
</div>
{% endif %}
{% if memberships %}
<div id="members">
{% for m in memberships.all %}
<div id="m{{m.id}}" class="{{m.status}}">
<h3 style="padding-left: 20px;">{{m.user}}</h3>
<div>
{{m.user}} has been a member of {{m.name.shortname}} since {{m.timecreated}}<br/>
</div>
</div>
{% endfor %}
</div>
{% endif %}
</div>
{% endblock %}
|