# HG changeset patch
# User nishanth
# Date 1267310835 -19800
# Node ID 56203661002a05206f8d3510faf813b56e60b7ab
# Parent c452c699a8af5eac28cd0cd84dafe77df09727df
provided links to make a raise the privileges of a user.
diff -r c452c699a8af -r 56203661002a taskapp/management/commands/seed_db.py
--- a/taskapp/management/commands/seed_db.py Sun Feb 28 03:45:28 2010 +0530
+++ b/taskapp/management/commands/seed_db.py Sun Feb 28 04:17:15 2010 +0530
@@ -32,7 +32,7 @@
create_request(defaultMentor, "DV", user)
elif i%2==0:
create_request(defaultMentor, "AD", user)
- elif i in ["7", "13"]:
+ elif i in [7, 13]:
user.is_active = False
user.save()
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 %}