equal
deleted
inserted
replaced
227 notification.sent_from = sent_from |
227 notification.sent_from = sent_from |
228 notification.task = task |
228 notification.task = task |
229 notification.remarks = remarks |
229 notification.remarks = remarks |
230 |
230 |
231 claimed_by_url = '<a href="/user/view/uid=%s">%s</a>'%(sent_from.id, sent_from.username) |
231 claimed_by_url = '<a href="/user/view/uid=%s">%s</a>'%(sent_from.id, sent_from.username) |
|
232 claim_url = '<a href="/task/claim/tid=%s">claim</a>'%(task.id) |
232 task_url = '<a href="/task/view/tid=%s">%s</a>'%(task.id, task.title) |
233 task_url = '<a href="/task/view/tid=%s">%s</a>'%(task.id, task.title) |
233 |
234 |
234 notification.sub = 'New claim for the task "%s"'%(task.title[:20]) |
235 notification.sub = 'New claim for the task "%s"'%(task.title[:20]) |
235 notification.message = '%s has submitted a claim for the task "%s" mentored by you.<br />'%(claimed_by_url, task_url) |
236 notification.message = '%s has submitted a %s for the task "%s" mentored by you.<br />'%(claimed_by_url, claim_url, task_url) |
236 notification.message += '<b>Claim proposal:</b> %s'%(remarks) |
237 notification.message += '<b>Claim proposal:</b> %s'%(remarks) |
237 |
238 |
238 |
239 |
239 |
240 |
240 notification.save() |
241 notification.save() |