diff --git a/rhodecode/templates/email_templates/commit_comment.mako b/rhodecode/templates/email_templates/commit_comment.mako --- a/rhodecode/templates/email_templates/commit_comment.mako +++ b/rhodecode/templates/email_templates/commit_comment.mako @@ -6,10 +6,11 @@ <% data = { 'user': h.person(user), + 'repo_name': repo_name, + 'commit_id': h.show_id(commit), + 'status': status_change, 'comment_file': comment_file, 'comment_line': comment_line, - 'repo_name': repo_name, - 'commit_id': h.show_id(commit), } %> ${_('[mention]') if mention else ''} \ @@ -17,12 +18,26 @@ data = { % if comment_file: ${_('%(user)s commented on commit `%(commit_id)s` (file: `%(comment_file)s`)') % data} ${_('in the %(repo_name)s repository') % data} % else: + % if status_change: + ${_('%(user)s commented on commit `%(commit_id)s` (status: %(status)s)') % data |n} ${_('in the %(repo_name)s repository') % data} + % else: ${_('%(user)s commented on commit `%(commit_id)s`') % data |n} ${_('in the %(repo_name)s repository') % data} + % endif % endif %def> <%def name="body_plaintext()" filter="n,trim"> +<% +data = { + 'user': h.person(user), + 'repo_name': repo_name, + 'commit_id': h.show_id(commit), + 'status': status_change, + 'comment_file': comment_file, + 'comment_line': comment_line, +} +%> ${self.subject()} * ${_('Comment link')}: ${commit_comment_url} @@ -35,13 +50,12 @@ data = { --- -${comment_body|n} - - %if status_change: ${_('Commit status was changed to')}: *${status_change}* %endif +${comment_body|n} + ${self.plaintext_footer()} %def> @@ -58,11 +72,11 @@ data = { %>
-% if comment_file:
- ${_('%(user)s commented on commit `%(commit_id)s` (file:`%(comment_file)s`)') % data} ${_('in the %(repo)s repository') % data |n}-% else: -${_('%(user)s commented on commit `%(commit_id)s`') % data |n} ${_('in the %(repo)s repository') % data |n}-% endif + % if comment_file: +${_('%(user)s commented on commit `%(commit_id)s` (file:`%(comment_file)s`)') % data} ${_('in the %(repo)s repository') % data |n}+ % else: +${_('%(user)s commented on commit `%(commit_id)s`') % data |n} ${_('in the %(repo)s repository') % data |n}+ % endif | |
${_('Commit')} | ${h.show_id(commit)} |
${_('Description')} | ${h.urlify_commit_message(commit.message, repo_name)} |