Mercurial > kallithea
diff rhodecode/model/notification.py @ 3121:3274ba9f1489 beta
fixes #691: Notifications for pull requests: move link to pull request to the top
- fixed html escape in the template
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 19 Dec 2012 23:12:33 +0100 |
parents | 716550e1e4fa |
children | 09757b15ce7c |
line wrap: on
line diff
--- a/rhodecode/model/notification.py Wed Dec 19 00:30:16 2012 +0100 +++ b/rhodecode/model/notification.py Wed Dec 19 23:12:33 2012 +0100 @@ -270,8 +270,9 @@ base = self.email_types.get(type_, self.email_types[self.TYPE_DEFAULT]) email_template = self._tmpl_lookup.get_template(base) - # translator inject - _kwargs = {'_': _} + # translator and helpers inject + _kwargs = {'_': _, + 'h': h} _kwargs.update(kwargs) log.debug('rendering tmpl %s with kwargs %s' % (base, _kwargs)) return email_template.render(**_kwargs)