diff -r 1a1e712e60fd -r 3699550991c6 templates/index.html --- a/templates/index.html Thu Feb 25 06:07:55 2010 +0530 +++ b/templates/index.html Thu Feb 25 17:33:34 2010 +0530 @@ -11,7 +11,52 @@ {% else %} Logged in as {{ user.username }}
{% endif %} + {% if can_create_task %} Create a task
{% endif %} + + {% if notifications.count %} +
{{ notifications.count }} unread + {% ifnotequal notifications.count 1 %} + notifications!! + {% else %} + notification!! + {% endifnotequal %} + {% endif %} + + {% if requests.count %} +
{{ requests.count }} unreplied + {% ifnotequal requests.count 1 %} + requests! + {% else %} + request! + {% endifnotequal %} + {% endif %} + + {% if user.task_claimed_users.count %} +
{{ user.task_claimed_users.count }} claimed + {% ifnotequal user.task_claimed_users.count 1 %} + tasks! + {% else %} + task! + {% endifnotequal %} + {% endif %} + + {% if user.task_assigned_users.count %} +
You are currently working on {{ user.task_assigned_users.count }} + {% ifnotequal user.task_assigned_users.count 1 %} + tasks! + {% else %} + task! + {% endifnotequal %} + {% endif %} + + {% if user.task_mentors.count %} +
Mentoring {{ user.task_mentors.count }} + {% ifnotequal user.task_mentors.count 1 %} + tasks! + {% endifnotequal %} + task! + {% endif %} {% endblock %}