From bc3690c74042bd29f1d473e4a53085b3defb92ad Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 9 Mar 2011 14:18:45 +0100 Subject: dashboard improvements --- templates/apps/userprofile/home.html | 46 ++++++++++++++++++++++++++---------- templates/base.html | 2 +- templates/tree.html | 2 +- 3 files changed, 35 insertions(+), 15 deletions(-) (limited to 'templates') diff --git a/templates/apps/userprofile/home.html b/templates/apps/userprofile/home.html index 00feb0b..56154a7 100644 --- a/templates/apps/userprofile/home.html +++ b/templates/apps/userprofile/home.html @@ -1,5 +1,7 @@ {% extends "tree.html" %} {% load datehumanize %} +{% load userdisplay %} +{% load tagging_tags %} {% block widgets %} $("#gravatar").append($.gravatar($('#email').text())); $("#names").accordion({ @@ -14,26 +16,44 @@ }); {% endblock %} {% block content %} -

Memberships

-
- {% for m in memberships.all %} -
-

{{m.name.shortname}}

-
- You became a member of {{m.name.shortname}} {{m.timecreated|datehumanize}} -
+ {% if memberships %} +

Memberships

+
+ {% for m in memberships.all %} +
+

{{m.name.shortname}}

+
+
+ You became a member of {{m.name.shortname}} {{m.timecreated|datehumanize}} + {% if m.tags %}

Role{{m.tags|pluralize}}

+
    {% for tag in m.tags %}
  • {{ tag|escape }}
  • {%endfor%}
{%endif%} +
+
+ +
+ +
+
+ {% empty %} +

No members yet...

+ {% endfor %}
- {% empty %} -

You are not a member of any groups yet...

- {% endfor %} -
+ {% endif %} +

Groups

{% for n,p in names %}

{{n.shortname}}

- {{n.shortname}} + {{n.shortname}} was created by {{n.creator|userdisplay}} {{n.timecreated|datehumanize}}.
{% empty %} diff --git a/templates/base.html b/templates/base.html index de8d0fd..4061643 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,7 +25,7 @@ - COIP{% if name %} - {{name.shortname}}{% else %} - top{% endif %} + COIP{% if name %} - {{name.shortname}}{% endif %}