summaryrefslogtreecommitdiff
path: root/templates/apps
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2010-07-10 01:58:40 +0200
committerLeif Johansson <leifj@sunet.se>2010-07-10 01:58:40 +0200
commit9fa6941d2e811a335477dc0270cde30e9d48a62a (patch)
tree01feea2b86f8bf720d170464669c14b25fcab50d /templates/apps
parente5c38904d1d7e01781c6622ae5ec3d902494deff (diff)
list user writable nodes
Diffstat (limited to 'templates/apps')
-rw-r--r--templates/apps/userprofile/home.html18
1 files changed, 17 insertions, 1 deletions
diff --git a/templates/apps/userprofile/home.html b/templates/apps/userprofile/home.html
index d769f6b..d635e53 100644
--- a/templates/apps/userprofile/home.html
+++ b/templates/apps/userprofile/home.html
@@ -6,13 +6,17 @@ $(function() {
$("#memberships").accordion({
header: 'h3'
});
+ $("#names").accordion({
+ header: 'h3'
+ });
});
</script>
{% endblock %}
{% block headline %}{{profile.display_name}}{% endblock %}
{% block title %}COIP - {{profile.display_name}} - Home{% endblock %}
{% block main %}
-<div id="memberships">
+<h3>Memberships</h3>
+<div id="memberships" style="width: 60%;">
{% for m in memberships %}
<div id="m{{m.id}}" class="{{m.status}}">
<h3 style="padding-left: 20px;">{{m.name.shortname}}</h3>
@@ -24,4 +28,16 @@ $(function() {
</div>
{% endfor %}
</div>
+<h3>Names</h3>
+<div id="names" style="width: 60%;">
+ {% for n,p in names %}
+ <div id="n{{n.id}}"">
+ <h3 style="padding-left: 20px;">{{n.shortname}}</h3>
+ <div>
+ You are allowed to {{p}} {{n.shortname}}<br/>
+ <a href="/name/id/{{n.id}}">More details about {{n.shortname}}...</a>
+ </div>
+ </div>
+ {% endfor %}
+</div>
{% endblock %} \ No newline at end of file