# HG changeset patch # User nishanth # Date 1267124344 -19800 # Node ID 3c3ea2a3f92a159bc8820399803b6e436ff4ad64 # Parent 091b044a3bf40f40ab0c55bc149e1f6fc725a399 now view request shows a better message if role is MT . diff -r 091b044a3bf4 -r 3c3ea2a3f92a templates/user/browse_notifications.html --- a/templates/user/browse_notifications.html Fri Feb 26 00:17:54 2010 +0530 +++ b/templates/user/browse_notifications.html Fri Feb 26 00:29:04 2010 +0530 @@ -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 -r 091b044a3bf4 -r 3c3ea2a3f92a templates/user/browse_requests.html --- a/templates/user/browse_requests.html Fri Feb 26 00:17:54 2010 +0530 +++ b/templates/user/browse_requests.html Fri Feb 26 00:29:04 2010 +0530 @@ -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 -r 091b044a3bf4 -r 3c3ea2a3f92a templates/user/view_request.html --- a/templates/user/view_request.html Fri Feb 26 00:17:54 2010 +0530 +++ b/templates/user/view_request.html Fri Feb 26 00:29:04 2010 +0530 @@ -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.