diff options
-rw-r--r-- | templates/user/browse_notifications.html | 16 | ||||
-rw-r--r-- | templates/user/browse_requests.html | 20 | ||||
-rw-r--r-- | 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 %} - <a href="/user/notifications/nid={{notification.pos}}"> - {% if not notification.is_read %} <b> {% endif %} - {{notification.sub}} - {% if not notification.is_read %} </b> {% endif %}</a><br /> - {% endfor %} + {% if not notifications %} + You have no notifications. + {% else %} + {% for notification in notifications %} + <a href="/user/notifications/nid={{notification.pos}}"> + {% if not notification.is_read %} <b> {% endif %} + {{notification.sub}} + {% if not notification.is_read %} </b> {% endif %}</a><br /> + {% 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 %} - <form><a href="/user/requests/rid={{req.pos}}"> - {% if not req.is_read %}<b>{% endif %}{{req.sent_by.username}}|{{req.role}}| - {% ifequal req.role "PY" %} - {{req.task.title}} - {% endifequal %}</a> - {% if not req.is_read %}</b>{% endif %}<br /></form> - {% endfor %} + {% if not reqs %} + You have no unreplied requests. + {% else %} + {% for req in reqs %} + <form><a href="/user/requests/rid={{req.pos}}"> + {% if not req.is_read %}<b>{% endif %}{{req.sent_by.username}}|{{req.role}}| + {% ifequal req.role "PY" %} + {{req.task.title}} + {% endifequal %}</a> + {% if not req.is_read %}</b>{% endif %}<br /></form> + {% 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 @@ <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> assigned {{req.pynts}} pynts to <a href="/user/view/uid={{req.receiving_user.id}}">{{req.receiving_user.username}}</a> for the task <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br /> - Please click yes/no<br /> - {% else %} + {% endifequal %} + + {% ifequal "MT" req.role %} + <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested you to act as a mentor for the task + <a href="/task/view/tid={{req.task.id}}">{{req.task.title}}</a><br /> {% endifequal %} + Please accept or reject the request.<br /> <form action="yes/" method="post"> - <input value="Yes" type="submit"> + <input value="Accept" type="submit"> </form> <form action="no/" method="post"> Remarks: <input type="text" name="remarks"> - <input value="No" type="submit"> + <input value="Reject" type="submit"> </form> <a href="/user/requests/">Click here</a> to return to the requests page. |