From 43b0dec7d77b9c9c59117b3b2db83aa6d56f2708 Mon Sep 17 00:00:00 2001 From: nishanth Date: Fri, 26 Feb 2010 00:29:04 +0530 Subject: now view request shows a better message if role is MT . --- templates/user/browse_notifications.html | 16 ++++++++++------ templates/user/browse_requests.html | 20 ++++++++++++-------- templates/user/view_request.html | 12 ++++++++---- 3 files changed, 30 insertions(+), 18 deletions(-) diff --git a/templates/user/browse_notifications.html b/templates/user/browse_notifications.html index c4b538e..a6a6ff2 100644 --- a/templates/user/browse_notifications.html +++ b/templates/user/browse_notifications.html @@ -1,9 +1,13 @@ {% extends 'base.html' %} {% block content %} - {% for notification in notifications %} - - {% if not notification.is_read %} {% endif %} - {{notification.sub}} - {% if not notification.is_read %} {% endif %}
- {% endfor %} + {% if not notifications %} + You have no notifications. + {% else %} + {% for notification in notifications %} + + {% if not notification.is_read %} {% endif %} + {{notification.sub}} + {% if not notification.is_read %} {% endif %}
+ {% endfor %} + {% endif %} {% endblock %} diff --git a/templates/user/browse_requests.html b/templates/user/browse_requests.html index 35432e0..6f136aa 100644 --- a/templates/user/browse_requests.html +++ b/templates/user/browse_requests.html @@ -1,11 +1,15 @@ {% extends 'base.html' %} {% block content %} - {% for req in reqs %} -
- {% if not req.is_read %}{% endif %}{{req.sent_by.username}}|{{req.role}}| - {% ifequal req.role "PY" %} - {{req.task.title}} - {% endifequal %} - {% if not req.is_read %}{% endif %}
- {% endfor %} + {% if not reqs %} + You have no unreplied requests. + {% else %} + {% for req in reqs %} +
+ {% if not req.is_read %}{% endif %}{{req.sent_by.username}}|{{req.role}}| + {% ifequal req.role "PY" %} + {{req.task.title}} + {% endifequal %} + {% if not req.is_read %}{% endif %}
+ {% endfor %} + {% endif %} {% endblock %} diff --git a/templates/user/view_request.html b/templates/user/view_request.html index f8f1403..5697768 100644 --- a/templates/user/view_request.html +++ b/templates/user/view_request.html @@ -11,16 +11,20 @@ {{req.sent_by.username}} assigned {{req.pynts}} pynts to {{req.receiving_user.username}} for the task {{req.task.title}}
- Please click yes/no
- {% else %} + {% endifequal %} + + {% ifequal "MT" req.role %} + {{req.sent_by.username}} requested you to act as a mentor for the task + {{req.task.title}}
{% endifequal %} + Please accept or reject the request.
- +
Remarks: - +
Click here to return to the requests page. -- cgit