equal
deleted
inserted
replaced
61 notification.sub = "New mentor for the task %s"%task.title[:20] |
61 notification.sub = "New mentor for the task %s"%task.title[:20] |
62 notification.message = "%s has accepted the request made by %s, asking him act as a mentor for the task %s<br />"%(new_mentor_url, requested_mentor_url, task_url) |
62 notification.message = "%s has accepted the request made by %s, asking him act as a mentor for the task %s<br />"%(new_mentor_url, requested_mentor_url, task_url) |
63 notification.message += "He can be contacted on %s"%new_mentor.email |
63 notification.message += "He can be contacted on %s"%new_mentor.email |
64 |
64 |
65 else: |
65 else: |
66 notification.sub = "Rejected request to act as a mentor for %s"%task.title[:20] |
66 notification.sub = "%s rejected request to act as a mentor"%new_mentor.username |
67 notification.message = "%s has rejected your request asking him to act as a mentor for %s.<br />"%(new_mentor_url, task_url) |
67 notification.message = "%s has rejected your request asking him to act as a mentor for %s.<br />"%(new_mentor_url, task_url) |
68 if remarks: |
68 if remarks: |
69 notification.message += "Remarks: %s<br />"%remarks |
69 notification.message += "Remarks: %s<br />"%remarks |
70 |
70 |
71 elif role in ["DV", "MG", "AD"]: |
71 elif role in ["DV", "MG", "AD"]: |