Browse Source

add link to notify

devel
Dmitry Novikov 7 years ago
parent
commit
375b420e6c
  1. 5
      taskapp/handle.py

5
taskapp/handle.py

@ -22,7 +22,10 @@ def handle(task, author, recipients, abon_group):
elif task.state == 'F' or task.state == 'C': elif task.state == 'F' or task.state == 'C':
text = _('Task completed') text = _('Task completed')
if task.abon is not None: if task.abon is not None:
fulltext = "%s:\n%s\n" % (text, task.abon.get_full_name())
fulltext = "%s:\n%s\n" % (
text,
'<a href="%s">%s</a>' % (task.abon.get_absolute_url(), task.abon.get_full_name())
)
else: else:
fulltext = "%s\n" % text fulltext = "%s\n" % text
fulltext += _('locality %s.\n') % abon_group.title fulltext += _('locality %s.\n') % abon_group.title

Loading…
Cancel
Save