##// END OF EJS Templates
Notification fixes...
marcink -
r2178:989c137f beta
parent child Browse files
Show More
@@ -29,7 +29,7 b' import traceback'
29 29 from pylons.i18n.translation import _
30 30 from sqlalchemy.util.compat import defaultdict
31 31
32 from rhodecode.lib.utils2 import extract_mentioned_users
32 from rhodecode.lib.utils2 import extract_mentioned_users, safe_unicode
33 33 from rhodecode.lib import helpers as h
34 34 from rhodecode.model import BaseModel
35 35 from rhodecode.model.db import ChangesetComment, User, Repository, Notification
@@ -67,7 +67,7 b' class ChangesetCommentsModel(BaseModel):'
67 67 if text:
68 68 repo = Repository.get(repo_id)
69 69 cs = repo.scm_instance.get_changeset(revision)
70 desc = cs.message
70 desc = "%s - %s" % (cs.short_id, h.shorter(cs.message, 256))
71 71 author_email = cs.author_email
72 72 comment = ChangesetComment()
73 73 comment.repo = repo
@@ -83,14 +83,17 b' class ChangesetCommentsModel(BaseModel):'
83 83 line = ''
84 84 if line_no:
85 85 line = _('on line %s') % line_no
86 subj = h.link_to('Re commit: %(commit_desc)s %(line)s' % \
87 {'commit_desc': desc, 'line': line},
88 h.url('changeset_home', repo_name=repo.repo_name,
89 revision=revision,
90 anchor='comment-%s' % comment.comment_id,
91 qualified=True,
92 )
93 )
86 subj = safe_unicode(
87 h.link_to('Re commit: %(commit_desc)s %(line)s' % \
88 {'commit_desc': desc, 'line': line},
89 h.url('changeset_home', repo_name=repo.repo_name,
90 revision=revision,
91 anchor='comment-%s' % comment.comment_id,
92 qualified=True,
93 )
94 )
95 )
96
94 97 body = text
95 98
96 99 # get the current participants of this changeset
General Comments 0
You need to be logged in to leave comments. Login now