Show More
@@ -6,10 +6,11 b'' | |||
|
6 | 6 | <% |
|
7 | 7 | data = { |
|
8 | 8 | 'user': h.person(user), |
|
9 | 'repo_name': repo_name, | |
|
10 | 'commit_id': h.show_id(commit), | |
|
11 | 'status': status_change, | |
|
9 | 12 | 'comment_file': comment_file, |
|
10 | 13 | 'comment_line': comment_line, |
|
11 | 'repo_name': repo_name, | |
|
12 | 'commit_id': h.show_id(commit), | |
|
13 | 14 | } |
|
14 | 15 | %> |
|
15 | 16 | ${_('[mention]') if mention else ''} \ |
@@ -17,12 +18,26 b' data = {' | |||
|
17 | 18 | % if comment_file: |
|
18 | 19 | ${_('%(user)s commented on commit `%(commit_id)s` (file: `%(comment_file)s`)') % data} ${_('in the %(repo_name)s repository') % data} |
|
19 | 20 | % else: |
|
21 | % if status_change: | |
|
22 | ${_('%(user)s commented on commit `%(commit_id)s` (status: %(status)s)') % data |n} ${_('in the %(repo_name)s repository') % data} | |
|
23 | % else: | |
|
20 | 24 | ${_('%(user)s commented on commit `%(commit_id)s`') % data |n} ${_('in the %(repo_name)s repository') % data} |
|
21 | 25 | % endif |
|
26 | % endif | |
|
22 | 27 | |
|
23 | 28 | </%def> |
|
24 | 29 | |
|
25 | 30 | <%def name="body_plaintext()" filter="n,trim"> |
|
31 | <% | |
|
32 | data = { | |
|
33 | 'user': h.person(user), | |
|
34 | 'repo_name': repo_name, | |
|
35 | 'commit_id': h.show_id(commit), | |
|
36 | 'status': status_change, | |
|
37 | 'comment_file': comment_file, | |
|
38 | 'comment_line': comment_line, | |
|
39 | } | |
|
40 | %> | |
|
26 | 41 | ${self.subject()} |
|
27 | 42 | |
|
28 | 43 | * ${_('Comment link')}: ${commit_comment_url} |
@@ -35,13 +50,12 b' data = {' | |||
|
35 | 50 | |
|
36 | 51 | --- |
|
37 | 52 | |
|
38 | ${comment_body|n} | |
|
39 | ||
|
40 | ||
|
41 | 53 | %if status_change: |
|
42 | 54 | ${_('Commit status was changed to')}: *${status_change}* |
|
43 | 55 | %endif |
|
44 | 56 | |
|
57 | ${comment_body|n} | |
|
58 | ||
|
45 | 59 | ${self.plaintext_footer()} |
|
46 | 60 | </%def> |
|
47 | 61 |
@@ -17,14 +17,13 b' data = {' | |||
|
17 | 17 | ${_('[mention]') if mention else ''} \ |
|
18 | 18 | |
|
19 | 19 | % if comment_file: |
|
20 |
${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s" (file: `%(comment_file)s`)') % data |
|
|
20 | ${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s" (file: `%(comment_file)s`)') % data} | |
|
21 | 21 | % else: |
|
22 | 22 | % if status_change: |
|
23 |
${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s" (status: %(status)s)') % data |
|
|
23 | ${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s" (status: %(status)s)') % data} | |
|
24 | 24 | % else: |
|
25 |
${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s"') % data |
|
|
25 | ${_('%(user)s commented on pull request #%(pr_id)s "%(pr_title)s"') % data} | |
|
26 | 26 | % endif |
|
27 | ||
|
28 | 27 | % endif |
|
29 | 28 | </%def> |
|
30 | 29 | |
@@ -59,7 +58,6 b' data = {' | |||
|
59 | 58 | |
|
60 | 59 | ${comment_body|n} |
|
61 | 60 | |
|
62 | ||
|
63 | 61 | ${self.plaintext_footer()} |
|
64 | 62 | </%def> |
|
65 | 63 |
General Comments 0
You need to be logged in to leave comments.
Login now