diff -r c452c699a8af -r 56203661002a templates/index.html --- a/templates/index.html Sun Feb 28 03:45:28 2010 +0530 +++ b/templates/index.html Sun Feb 28 04:17:15 2010 +0530 @@ -12,60 +12,69 @@ Logged in as {{ user.username }}
{% endif %} - {% if can_create_task %} - Create a task
- {% endif %} - {% if notifications.count %} -
{{ notifications.count }} unread + You have {{ notifications.count }} unread {% ifnotequal notifications.count 1 %} - notifications!! + notifications {% else %} - notification!! - {% endifnotequal %} + notification + {% endifnotequal %}
{% endif %} {% if requests.count %} -
{{ requests.count }} unreplied + You have {{ requests.count }} unreplied {% ifnotequal requests.count 1 %} - requests! + requests {% else %} - request! - {% endifnotequal %} + request + {% endifnotequal %}
{% endif %} {% if user.task_claimed_users.count %} -
{{ user.task_claimed_users.count }} claimed + {{ user.task_claimed_users.count }} claimed {% ifnotequal user.task_claimed_users.count 1 %} - tasks! + tasks {% else %} - task! - {% endifnotequal %} + task + {% endifnotequal %}
{% endif %} {% if user.task_assigned_users.count %} -
You are currently working on {{ user.task_assigned_users.count }} + You are currently working on {{ user.task_assigned_users.count }} {% ifnotequal user.task_assigned_users.count 1 %} - tasks! + tasks {% else %} - task! - {% endifnotequal %} + task + {% endifnotequal %}
{% endif %} {% if user.task_mentors.count %} -
Mentoring {{ user.task_mentors.count }} + Mentoring {{ user.task_mentors.count }} {% ifnotequal user.task_mentors.count 1 %} - tasks! + tasks {% else %} - task! - {% endifnotequal %} + task + {% endifnotequal %}
{% endif %} {% if unpublished_tasks %} -
Unpublished tasks:
+
Unpublished tasks viewable by you:
{% for a_task in unpublished_tasks %} {{a_task.title}}    {% endfor %} {% endif %} +

+ {% ifnotequal user.get_profile.rights "CT" %} + Create a task
+ {% endifnotequal %} + {% ifequal user.get_profile.rights "MG" %} + Request another to be a Developer + Request another user to act as manager
+ {% endifequal %} + {% ifequal user.get_profile.rights "AD" %} + Request another to be a Developer
+ Request another user to act as a Manager
+ Request another user to act as an Admin
+ {% endifequal %} {% endblock %}