taskapp/utilities/notification.py
changeset 186 c083ebb6f8d7
parent 183 c088c79a225c
child 199 946d0fe60606
equal deleted inserted replaced
185:f65e62255e47 186:c083ebb6f8d7
    94 
    94 
    95     elif role == "NT":
    95     elif role == "NT":
    96 
    96 
    97         notification.task = task
    97         notification.task = task
    98         new_mentor = sent_to
    98         new_mentor = sent_to
    99         mentor_learn_url = '<sup><a href="/about/mentor">learn more</a></sup>'
    99         mentor_learn_url = '<sup><a href="/about/mentor/">learn more</a></sup>'
   100         task_url= '<a href="/task/view/tid=%s">%s</a>'%(task.id, task.title)
   100         task_url= '<a href="/task/view/tid=%s">%s</a>'%(task.id, task.title)
   101 
   101 
   102         notification.sub = "You are mentoring the task %s"%task.title[:20]
   102         notification.sub = "You are mentoring the task %s"%task.title[:20]
   103         notification.message = "You have accepted to act as a mentor%s for the task %s.<br />"%(mentor_learn_url, task_url)
   103         notification.message = "You have accepted to act as a mentor%s for the task %s.<br />"%(mentor_learn_url, task_url)
   104         notification.message += " Here is a list of other mentors and their email addresses.<br /> <ul>"
   104         notification.message += " Here is a list of other mentors and their email addresses.<br /> <ul>"