taskapp/utilities/notification.py
changeset 183 c088c79a225c
parent 167 b61e45074ba1
child 186 c083ebb6f8d7
equal deleted inserted replaced
182:1b4253350a3c 183:c088c79a225c
   116             notification.message += "</ul><br />"
   116             notification.message += "</ul><br />"
   117         notification.message += "Happy Mentoring."
   117         notification.message += "Happy Mentoring."
   118 
   118 
   119     elif role == "NU":
   119     elif role == "NU":
   120 
   120 
   121         start_here_url = '<a href="/about/starthere/" taget="_blank">start here</a>'
   121         start_here_url = '<a href="/about/starthere/" taget="_blank">click here</a>'
   122         notification.sub = "Welcome %s"%sent_to.username
   122         notification.sub = "Welcome %s"%sent_to.username
   123         notification.message = "Welcome to PyTasks %s.<br />"%sent_to.username
   123         notification.message = "Welcome to PyTasks %s.<br />"%sent_to.username
   124         notification.message += "If you are lost and have no clue, %s"%start_here_url
   124         notification.message += "%s to know more."%start_here_url
   125 
   125 
   126     elif role in ["ND", "NG", "NA"]:
   126     elif role in ["ND", "NG", "NA"]:
   127 
   127 
   128         rights_dict = dict(RIGHTS_CHOICES)
   128         rights_dict = dict(RIGHTS_CHOICES)
   129 
   129