From 5dfb4ac386203b008fed85ff959f523a9a3197a3 Mon Sep 17 00:00:00 2001 From: nishanth Date: Wed, 3 Mar 2010 04:45:38 +0530 Subject: finished the phase-2 successfully. added all the learnmore templates. hav to look for bugs if any. --- taskapp/utilities/notification.py | 2 +- taskapp/views/user.py | 9 +++++---- templates/about/admin.html | 8 ++++++++ templates/about/developer.html | 8 ++++++++ templates/about/manager.html | 7 +++++++ templates/about/notification.html | 7 +++++++ templates/about/request.html | 25 +++++++++++++++++++++++++ templates/about/tasklife.html | 2 ++ 8 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 templates/about/admin.html create mode 100644 templates/about/developer.html create mode 100644 templates/about/manager.html create mode 100644 templates/about/notification.html create mode 100644 templates/about/request.html diff --git a/taskapp/utilities/notification.py b/taskapp/utilities/notification.py index 4c14976..696f5b5 100644 --- a/taskapp/utilities/notification.py +++ b/taskapp/utilities/notification.py @@ -96,7 +96,7 @@ def create_notification(role, sent_to, sent_from=None, reply=None, task=None, re notification.task = task new_mentor = sent_to - mentor_learn_url = 'learn more' + mentor_learn_url = 'learn more' task_url= '%s'%(task.id, task.title) notification.sub = "You are mentoring the task %s"%task.title[:20] diff --git a/taskapp/views/user.py b/taskapp/views/user.py index ea29576..3277039 100644 --- a/taskapp/views/user.py +++ b/taskapp/views/user.py @@ -22,10 +22,11 @@ about = { "starthere": "about/starthere.html", "task": "about/task.html", "tasklife": "about/tasklife.html", - "developer": "about/developer.html", - ## "manager": - ## "admin": - ## "request": - also contains about automatic rejection of requests + "developer": "about/developer.html", + "notification": "about/notification.html", + "request": "about/request.html", + "manager": "about/manager.html", + "admin": "about/admin.html", } def show_msg(user, message, redirect_url=None, url_desc=None): diff --git a/templates/about/admin.html b/templates/about/admin.html new file mode 100644 index 0000000..e623b8f --- /dev/null +++ b/templates/about/admin.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} +{% block title %} + PyTasks - About - Admin +{% endblock %} +{% block content %} + Admin is the user who has to approve assign of credits to any user for his/her work on the task.
+ An Admin also has the right to request normal users to become admins or managers or developers. +{% endblock %} diff --git a/templates/about/developer.html b/templates/about/developer.html new file mode 100644 index 0000000..b0a7713 --- /dev/null +++ b/templates/about/developer.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} +{% block title %} + PyTasks - About - Developer +{% endblock %} +{% block content %} + A Developer has the right to post a task. The link is available on your homepage.
+ click here to know the complete life cycle of a task. +{% endblock %} diff --git a/templates/about/manager.html b/templates/about/manager.html new file mode 100644 index 0000000..804cda5 --- /dev/null +++ b/templates/about/manager.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} +{% block title %} + PyTasks - About - Manager +{% endblock %} +{% block content %} + A Manager has the right to request normal users to become managers or developers. +{% endblock %} diff --git a/templates/about/notification.html b/templates/about/notification.html new file mode 100644 index 0000000..3fce3ce --- /dev/null +++ b/templates/about/notification.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} +{% block title %} + PyTasks - About - Notification +{% endblock %} +{% block content %} + Notification is a message generated by the system to inform you about any events. +{% endblock %} diff --git a/templates/about/request.html b/templates/about/request.html new file mode 100644 index 0000000..4c20b34 --- /dev/null +++ b/templates/about/request.html @@ -0,0 +1,25 @@ +{% extends 'base.html' %} +{% block title %} + PyTasks - About - Request +{% endblock %} +{% block content %} + Request is a request made by a user, requesting you to become someone else. It can also be request of assigning pynts to a user + for a task ( goes to all the admins only ). + You can accept or reject a request. You can also provide optional remarks when rejecting. When you respond to a request, it is + automatically removed from your requests and you will be redirected to browse requests page. + Redundant requests are automatically removed.

+ The following can be redundant requests. + + These redundant requests when removed, a notification is sent to the requested user. + + +{% endblock %} diff --git a/templates/about/tasklife.html b/templates/about/tasklife.html index 0eb9cd5..d3e3c24 100644 --- a/templates/about/tasklife.html +++ b/templates/about/tasklife.html @@ -27,6 +27,8 @@ request for assign of credits to the task implies that someone has worked on the task and hence dependencies cannot be added after that.

+ The users can be selected to work or removed from working users at any point in time. If a user is removed, he can claim again + to request to continue working on the task. If a user is removed, all the pending requests for assigning pynts to user will be made invalid. After a considerable amount of work has been done and all the users and mentors have been assigned pynts properly, any mentor in the task can mark the task as complete. The link is available on assign pynts page just in case the mentor wants to assign more pynts before marking the task as complete.
-- cgit