@@ -270,8 +270,9 @@ class EmailNotificationModel(BaseModel):
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)
## -*- coding: utf-8 -*-
<%inherit file="main.html"/>
${_('User %s opened pull request for repository %s and wants you to review changes.') % ('<b>%s</b>' % pr_user_created,pr_repo_url)}
${_('User %s opened pull request for repository %s and wants you to review changes.') % (('<b>%s</b>' % pr_user_created),pr_repo_url) |n}
<div>${_('title')}: ${pr_title}</div>
<div>${_('description')}:</div>
<div>${_('View this pull request here')}: ${pr_url}</div>
<p>
${body}
</p>
@@ -15,4 +16,4 @@ ${body}
%endfor
</ul>
${_('View this pull request here')}: ${pr_url}
Status change: