summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornishanth2010-03-04 17:43:47 +0530
committernishanth2010-03-04 17:43:47 +0530
commit8da619c6465441a21c149078f0a41592c187d49a (patch)
tree3417970904db282e1e5b16389c42bc4e8d8c6f84
parente19c6effc9fd28adece4f9bd005359037382d025 (diff)
downloadpytask-8da619c6465441a21c149078f0a41592c187d49a.tar.gz
pytask-8da619c6465441a21c149078f0a41592c187d49a.tar.bz2
pytask-8da619c6465441a21c149078f0a41592c187d49a.zip
now there is a link to claim in new_claim notification.
-rw-r--r--taskapp/utilities/notification.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/taskapp/utilities/notification.py b/taskapp/utilities/notification.py
index 9887238..eda8e06 100644
--- a/taskapp/utilities/notification.py
+++ b/taskapp/utilities/notification.py
@@ -229,10 +229,11 @@ def create_notification(role, sent_to, sent_from=None, reply=None, task=None, re
notification.remarks = remarks
claimed_by_url = '<a href="/user/view/uid=%s">%s</a>'%(sent_from.id, sent_from.username)
+ claim_url = '<a href="/task/claim/tid=%s">claim</a>'%(task.id)
task_url = '<a href="/task/view/tid=%s">%s</a>'%(task.id, task.title)
notification.sub = 'New claim for the task "%s"'%(task.title[:20])
- notification.message = '%s has submitted a claim for the task "%s" mentored by you.<br />'%(claimed_by_url, task_url)
+ notification.message = '%s has submitted a %s for the task "%s" mentored by you.<br />'%(claimed_by_url, claim_url, task_url)
notification.message += '<b>Claim proposal:</b> %s'%(remarks)