##// END OF EJS Templates
emails: expose inline/general next to comment type.
dan -
r4052:23a700f2 default
parent child Browse files
Show More
@@ -1,170 +1,170 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="base.mako"/>
2 <%inherit file="base.mako"/>
3 <%namespace name="base" file="base.mako"/>
3 <%namespace name="base" file="base.mako"/>
4
4
5 ## EMAIL SUBJECT
5 ## EMAIL SUBJECT
6 <%def name="subject()" filter="n,trim,whitespace_filter">
6 <%def name="subject()" filter="n,trim,whitespace_filter">
7 <%
7 <%
8 data = {
8 data = {
9 'user': '@'+h.person(user),
9 'user': '@'+h.person(user),
10 'repo_name': repo_name,
10 'repo_name': repo_name,
11 'status': status_change,
11 'status': status_change,
12 'comment_file': comment_file,
12 'comment_file': comment_file,
13 'comment_line': comment_line,
13 'comment_line': comment_line,
14 'comment_type': comment_type,
14 'comment_type': comment_type,
15 'comment_id': comment_id,
15 'comment_id': comment_id,
16
16
17 'commit_id': h.show_id(commit),
17 'commit_id': h.show_id(commit),
18 }
18 }
19 %>
19 %>
20
20
21
21
22 % if comment_file:
22 % if comment_file:
23 ${(_('[mention]') if mention else '')} ${_('{user} left a {comment_type} on file `{comment_file}` in commit `{commit_id}`').format(**data)} ${_('in the `{repo_name}` repository').format(**data) |n}
23 ${(_('[mention]') if mention else '')} ${_('{user} left a {comment_type} on file `{comment_file}` in commit `{commit_id}`').format(**data)} ${_('in the `{repo_name}` repository').format(**data) |n}
24 % else:
24 % else:
25 % if status_change:
25 % if status_change:
26 ${(_('[mention]') if mention else '')} ${_('[status: {status}] {user} left a {comment_type} on commit `{commit_id}`').format(**data) |n} ${_('in the `{repo_name}` repository').format(**data) |n}
26 ${(_('[mention]') if mention else '')} ${_('[status: {status}] {user} left a {comment_type} on commit `{commit_id}`').format(**data) |n} ${_('in the `{repo_name}` repository').format(**data) |n}
27 % else:
27 % else:
28 ${(_('[mention]') if mention else '')} ${_('{user} left a {comment_type} on commit `{commit_id}`').format(**data) |n} ${_('in the `{repo_name}` repository').format(**data) |n}
28 ${(_('[mention]') if mention else '')} ${_('{user} left a {comment_type} on commit `{commit_id}`').format(**data) |n} ${_('in the `{repo_name}` repository').format(**data) |n}
29 % endif
29 % endif
30 % endif
30 % endif
31
31
32 </%def>
32 </%def>
33
33
34 ## PLAINTEXT VERSION OF BODY
34 ## PLAINTEXT VERSION OF BODY
35 <%def name="body_plaintext()" filter="n,trim">
35 <%def name="body_plaintext()" filter="n,trim">
36 <%
36 <%
37 data = {
37 data = {
38 'user': h.person(user),
38 'user': h.person(user),
39 'repo_name': repo_name,
39 'repo_name': repo_name,
40 'status': status_change,
40 'status': status_change,
41 'comment_file': comment_file,
41 'comment_file': comment_file,
42 'comment_line': comment_line,
42 'comment_line': comment_line,
43 'comment_type': comment_type,
43 'comment_type': comment_type,
44 'comment_id': comment_id,
44 'comment_id': comment_id,
45
45
46 'commit_id': h.show_id(commit),
46 'commit_id': h.show_id(commit),
47 }
47 }
48 %>
48 %>
49
49
50 * ${_('Comment link')}: ${commit_comment_url}
50 * ${('Inline' if comment_file else 'General')} ${_('Comment link')}: ${commit_comment_url}
51
51
52 %if status_change:
52 %if status_change:
53 * ${_('Commit status')}: ${_('Status was changed to')}: *${status_change}*
53 * ${_('Commit status')}: ${_('Status was changed to')}: *${status_change}*
54
54
55 %endif
55 %endif
56 * ${_('Commit')}: ${h.show_id(commit)}
56 * ${_('Commit')}: ${h.show_id(commit)}
57
57
58 * ${_('Commit message')}: ${commit.message}
58 * ${_('Commit message')}: ${commit.message}
59
59
60 %if comment_file:
60 %if comment_file:
61 * ${_('File: {comment_file} on line {comment_line}').format(**data)}
61 * ${_('File: {comment_file} on line {comment_line}').format(**data)}
62
62
63 %endif
63 %endif
64 % if comment_type == 'todo':
64 % if comment_type == 'todo':
65 ${_('`TODO` comment')}:
65 ${_('`TODO` comment')}:
66 % else:
66 % else:
67 ${_('`Note` comment')}:
67 ${_('`Note` comment')}:
68 % endif
68 % endif
69
69
70 ${comment_body |n, trim}
70 ${comment_body |n, trim}
71
71
72 ---
72 ---
73 ${self.plaintext_footer()}
73 ${self.plaintext_footer()}
74 </%def>
74 </%def>
75
75
76
76
77 <%
77 <%
78 data = {
78 data = {
79 'user': h.person(user),
79 'user': h.person(user),
80 'comment_file': comment_file,
80 'comment_file': comment_file,
81 'comment_line': comment_line,
81 'comment_line': comment_line,
82 'comment_type': comment_type,
82 'comment_type': comment_type,
83 'comment_id': comment_id,
83 'comment_id': comment_id,
84 'renderer_type': renderer_type or 'plain',
84 'renderer_type': renderer_type or 'plain',
85
85
86 'repo': commit_target_repo_url,
86 'repo': commit_target_repo_url,
87 'repo_name': repo_name,
87 'repo_name': repo_name,
88 'commit_id': h.show_id(commit),
88 'commit_id': h.show_id(commit),
89 }
89 }
90 %>
90 %>
91
91
92 <table style="text-align:left;vertical-align:middle;width: 100%">
92 <table style="text-align:left;vertical-align:middle;width: 100%">
93 <tr>
93 <tr>
94 <td style="width:100%;border-bottom:1px solid #dbd9da;">
94 <td style="width:100%;border-bottom:1px solid #dbd9da;">
95
95
96 <h4 style="margin: 0">
96 <h4 style="margin: 0">
97 <div style="margin-bottom: 4px; color:#7E7F7F">
97 <div style="margin-bottom: 4px; color:#7E7F7F">
98 @${h.person(user.username)}
98 @${h.person(user.username)}
99 </div>
99 </div>
100 ${_('left a')}
100 ${_('left a')}
101 <a href="${commit_comment_url}" style="${base.link_css()}">
101 <a href="${commit_comment_url}" style="${base.link_css()}">
102 % if comment_file:
102 % if comment_file:
103 ${_('{comment_type} on file `{comment_file}` in commit.').format(**data)}
103 ${_('{comment_type} on file `{comment_file}` in commit.').format(**data)}
104 % else:
104 % else:
105 ${_('{comment_type} on commit.').format(**data) |n}
105 ${_('{comment_type} on commit.').format(**data) |n}
106 % endif
106 % endif
107 </a>
107 </a>
108 <div style="margin-top: 10px"></div>
108 <div style="margin-top: 10px"></div>
109 ${_('Commit')} <code>${data['commit_id']}</code> ${_('of repository')}: ${data['repo_name']}
109 ${_('Commit')} <code>${data['commit_id']}</code> ${_('of repository')}: ${data['repo_name']}
110 </h4>
110 </h4>
111
111
112 </td>
112 </td>
113 </tr>
113 </tr>
114
114
115 </table>
115 </table>
116
116
117 <table style="text-align:left;vertical-align:middle;width: 100%">
117 <table style="text-align:left;vertical-align:middle;width: 100%">
118
118
119 ## spacing def
119 ## spacing def
120 <tr>
120 <tr>
121 <td style="width: 130px"></td>
121 <td style="width: 130px"></td>
122 <td></td>
122 <td></td>
123 </tr>
123 </tr>
124
124
125 % if status_change:
125 % if status_change:
126 <tr>
126 <tr>
127 <td style="padding-right:20px;">${_('Commit Status')}:</td>
127 <td style="padding-right:20px;">${_('Commit Status')}:</td>
128 <td>
128 <td>
129 ${_('Status was changed to')}: ${base.status_text(status_change, tag_type=status_change_type)}
129 ${_('Status was changed to')}: ${base.status_text(status_change, tag_type=status_change_type)}
130 </td>
130 </td>
131 </tr>
131 </tr>
132 % endif
132 % endif
133
133
134 <tr>
134 <tr>
135 <td style="padding-right:20px;">${_('Commit')}:</td>
135 <td style="padding-right:20px;">${_('Commit')}:</td>
136 <td>
136 <td>
137 <a href="${commit_comment_url}" style="${base.link_css()}">${h.show_id(commit)}</a>
137 <a href="${commit_comment_url}" style="${base.link_css()}">${h.show_id(commit)}</a>
138 </td>
138 </td>
139 </tr>
139 </tr>
140 <tr>
140 <tr>
141 <td style="padding-right:20px;">${_('Commit message')}:</td>
141 <td style="padding-right:20px;">${_('Commit message')}:</td>
142 <td style="white-space:pre-wrap">${h.urlify_commit_message(commit.message, repo_name)}</td>
142 <td style="white-space:pre-wrap">${h.urlify_commit_message(commit.message, repo_name)}</td>
143 </tr>
143 </tr>
144
144
145 % if comment_file:
145 % if comment_file:
146 <tr>
146 <tr>
147 <td style="padding-right:20px;">${_('File')}:</td>
147 <td style="padding-right:20px;">${_('File')}:</td>
148 <td><a href="${commit_comment_url}" style="${base.link_css()}">${_('`{comment_file}` on line {comment_line}').format(**data)}</a></td>
148 <td><a href="${commit_comment_url}" style="${base.link_css()}">${_('`{comment_file}` on line {comment_line}').format(**data)}</a></td>
149 </tr>
149 </tr>
150 % endif
150 % endif
151
151
152 <tr style="border-bottom:1px solid #dbd9da;">
152 <tr style="border-bottom:1px solid #dbd9da;">
153 <td colspan="2" style="padding-right:20px;">
153 <td colspan="2" style="padding-right:20px;">
154 % if comment_type == 'todo':
154 % if comment_type == 'todo':
155 ${_('`TODO` number')} ${comment_id}:
155 ${('Inline' if comment_file else 'General')} ${_('`TODO` number')} ${comment_id}:
156 % else:
156 % else:
157 ${_('`Note` number')} ${comment_id}:
157 ${('Inline' if comment_file else 'General')} ${_('`Note` number')} ${comment_id}:
158 % endif
158 % endif
159 </td>
159 </td>
160 </tr>
160 </tr>
161
161
162 <tr>
162 <tr>
163 <td colspan="2" style="background: #F7F7F7">${h.render(comment_body, renderer=data['renderer_type'], mentions=True)}</td>
163 <td colspan="2" style="background: #F7F7F7">${h.render(comment_body, renderer=data['renderer_type'], mentions=True)}</td>
164 </tr>
164 </tr>
165
165
166 <tr>
166 <tr>
167 <td><a href="${commit_comment_reply_url}">${_('Reply')}</a></td>
167 <td><a href="${commit_comment_reply_url}">${_('Reply')}</a></td>
168 <td></td>
168 <td></td>
169 </tr>
169 </tr>
170 </table>
170 </table>
@@ -1,200 +1,200 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="base.mako"/>
2 <%inherit file="base.mako"/>
3 <%namespace name="base" file="base.mako"/>
3 <%namespace name="base" file="base.mako"/>
4
4
5 ## EMAIL SUBJECT
5 ## EMAIL SUBJECT
6 <%def name="subject()" filter="n,trim,whitespace_filter">
6 <%def name="subject()" filter="n,trim,whitespace_filter">
7 <%
7 <%
8 data = {
8 data = {
9 'user': '@'+h.person(user),
9 'user': '@'+h.person(user),
10 'repo_name': repo_name,
10 'repo_name': repo_name,
11 'status': status_change,
11 'status': status_change,
12 'comment_file': comment_file,
12 'comment_file': comment_file,
13 'comment_line': comment_line,
13 'comment_line': comment_line,
14 'comment_type': comment_type,
14 'comment_type': comment_type,
15 'comment_id': comment_id,
15 'comment_id': comment_id,
16
16
17 'pr_title': pull_request.title,
17 'pr_title': pull_request.title,
18 'pr_id': pull_request.pull_request_id,
18 'pr_id': pull_request.pull_request_id,
19 }
19 }
20 %>
20 %>
21
21
22
22
23 % if comment_file:
23 % if comment_file:
24 ${(_('[mention]') if mention else '')} ${_('{user} left a {comment_type} on file `{comment_file}` in pull request !{pr_id}: "{pr_title}"').format(**data) |n}
24 ${(_('[mention]') if mention else '')} ${_('{user} left a {comment_type} on file `{comment_file}` in pull request !{pr_id}: "{pr_title}"').format(**data) |n}
25 % else:
25 % else:
26 % if status_change:
26 % if status_change:
27 ${(_('[mention]') if mention else '')} ${_('[status: {status}] {user} left a {comment_type} on pull request !{pr_id}: "{pr_title}"').format(**data) |n}
27 ${(_('[mention]') if mention else '')} ${_('[status: {status}] {user} left a {comment_type} on pull request !{pr_id}: "{pr_title}"').format(**data) |n}
28 % else:
28 % else:
29 ${(_('[mention]') if mention else '')} ${_('{user} left a {comment_type} on pull request !{pr_id}: "{pr_title}"').format(**data) |n}
29 ${(_('[mention]') if mention else '')} ${_('{user} left a {comment_type} on pull request !{pr_id}: "{pr_title}"').format(**data) |n}
30 % endif
30 % endif
31 % endif
31 % endif
32
32
33 </%def>
33 </%def>
34
34
35 ## PLAINTEXT VERSION OF BODY
35 ## PLAINTEXT VERSION OF BODY
36 <%def name="body_plaintext()" filter="n,trim">
36 <%def name="body_plaintext()" filter="n,trim">
37 <%
37 <%
38 data = {
38 data = {
39 'user': h.person(user),
39 'user': h.person(user),
40 'repo_name': repo_name,
40 'repo_name': repo_name,
41 'status': status_change,
41 'status': status_change,
42 'comment_file': comment_file,
42 'comment_file': comment_file,
43 'comment_line': comment_line,
43 'comment_line': comment_line,
44 'comment_type': comment_type,
44 'comment_type': comment_type,
45 'comment_id': comment_id,
45 'comment_id': comment_id,
46
46
47 'pr_title': pull_request.title,
47 'pr_title': pull_request.title,
48 'pr_id': pull_request.pull_request_id,
48 'pr_id': pull_request.pull_request_id,
49 'source_ref_type': pull_request.source_ref_parts.type,
49 'source_ref_type': pull_request.source_ref_parts.type,
50 'source_ref_name': pull_request.source_ref_parts.name,
50 'source_ref_name': pull_request.source_ref_parts.name,
51 'target_ref_type': pull_request.target_ref_parts.type,
51 'target_ref_type': pull_request.target_ref_parts.type,
52 'target_ref_name': pull_request.target_ref_parts.name,
52 'target_ref_name': pull_request.target_ref_parts.name,
53 'source_repo': pull_request_source_repo.repo_name,
53 'source_repo': pull_request_source_repo.repo_name,
54 'target_repo': pull_request_target_repo.repo_name,
54 'target_repo': pull_request_target_repo.repo_name,
55 'source_repo_url': pull_request_source_repo_url,
55 'source_repo_url': pull_request_source_repo_url,
56 'target_repo_url': pull_request_target_repo_url,
56 'target_repo_url': pull_request_target_repo_url,
57 }
57 }
58 %>
58 %>
59
59
60 ${h.literal(_('Pull request !{pr_id}: `{pr_title}`').format(**data))}
60 ${h.literal(_('Pull request !{pr_id}: `{pr_title}`').format(**data))}
61
61
62 * ${h.literal(_('Commit flow: {source_ref_type}:{source_ref_name} of {source_repo_url} into {target_ref_type}:{target_ref_name} of {target_repo_url}').format(**data))}
62 * ${h.literal(_('Commit flow: {source_ref_type}:{source_ref_name} of {source_repo_url} into {target_ref_type}:{target_ref_name} of {target_repo_url}').format(**data))}
63
63
64 * ${_('Comment link')}: ${pr_comment_url}
64 * ${('Inline' if comment_file else 'General')} ${_('Comment link')}: ${pr_comment_url}
65
65
66 %if status_change and not closing_pr:
66 %if status_change and not closing_pr:
67 * ${_('{user} submitted pull request !{pr_id} status: *{status}*').format(**data)}
67 * ${_('{user} submitted pull request !{pr_id} status: *{status}*').format(**data)}
68
68
69 %elif status_change and closing_pr:
69 %elif status_change and closing_pr:
70 * ${_('{user} submitted pull request !{pr_id} status: *{status} and closed*').format(**data)}
70 * ${_('{user} submitted pull request !{pr_id} status: *{status} and closed*').format(**data)}
71
71
72 %endif
72 %endif
73 %if comment_file:
73 %if comment_file:
74 * ${_('File: {comment_file} on line {comment_line}').format(**data)}
74 * ${_('File: {comment_file} on line {comment_line}').format(**data)}
75
75
76 %endif
76 %endif
77 % if comment_type == 'todo':
77 % if comment_type == 'todo':
78 ${_('`TODO` comment')}:
78 ${_('`TODO` comment')}:
79 % else:
79 % else:
80 ${_('`Note` comment')}:
80 ${_('`Note` comment')}:
81 % endif
81 % endif
82
82
83 ${comment_body |n, trim}
83 ${comment_body |n, trim}
84
84
85 ---
85 ---
86 ${self.plaintext_footer()}
86 ${self.plaintext_footer()}
87 </%def>
87 </%def>
88
88
89
89
90 <%
90 <%
91 data = {
91 data = {
92 'user': h.person(user),
92 'user': h.person(user),
93 'comment_file': comment_file,
93 'comment_file': comment_file,
94 'comment_line': comment_line,
94 'comment_line': comment_line,
95 'comment_type': comment_type,
95 'comment_type': comment_type,
96 'comment_id': comment_id,
96 'comment_id': comment_id,
97 'renderer_type': renderer_type or 'plain',
97 'renderer_type': renderer_type or 'plain',
98
98
99 'pr_title': pull_request.title,
99 'pr_title': pull_request.title,
100 'pr_id': pull_request.pull_request_id,
100 'pr_id': pull_request.pull_request_id,
101 'status': status_change,
101 'status': status_change,
102 'source_ref_type': pull_request.source_ref_parts.type,
102 'source_ref_type': pull_request.source_ref_parts.type,
103 'source_ref_name': pull_request.source_ref_parts.name,
103 'source_ref_name': pull_request.source_ref_parts.name,
104 'target_ref_type': pull_request.target_ref_parts.type,
104 'target_ref_type': pull_request.target_ref_parts.type,
105 'target_ref_name': pull_request.target_ref_parts.name,
105 'target_ref_name': pull_request.target_ref_parts.name,
106 'source_repo': pull_request_source_repo.repo_name,
106 'source_repo': pull_request_source_repo.repo_name,
107 'target_repo': pull_request_target_repo.repo_name,
107 'target_repo': pull_request_target_repo.repo_name,
108 'source_repo_url': h.link_to(pull_request_source_repo.repo_name, pull_request_source_repo_url),
108 'source_repo_url': h.link_to(pull_request_source_repo.repo_name, pull_request_source_repo_url),
109 'target_repo_url': h.link_to(pull_request_target_repo.repo_name, pull_request_target_repo_url),
109 'target_repo_url': h.link_to(pull_request_target_repo.repo_name, pull_request_target_repo_url),
110 }
110 }
111 %>
111 %>
112
112
113 <table style="text-align:left;vertical-align:middle;width: 100%">
113 <table style="text-align:left;vertical-align:middle;width: 100%">
114 <tr>
114 <tr>
115 <td style="width:100%;border-bottom:1px solid #dbd9da;">
115 <td style="width:100%;border-bottom:1px solid #dbd9da;">
116
116
117 <h4 style="margin: 0">
117 <h4 style="margin: 0">
118 <div style="margin-bottom: 4px; color:#7E7F7F">
118 <div style="margin-bottom: 4px; color:#7E7F7F">
119 @${h.person(user.username)}
119 @${h.person(user.username)}
120 </div>
120 </div>
121 ${_('left a')}
121 ${_('left a')}
122 <a href="${pr_comment_url}" style="${base.link_css()}">
122 <a href="${pr_comment_url}" style="${base.link_css()}">
123 % if comment_file:
123 % if comment_file:
124 ${_('{comment_type} on file `{comment_file}` in pull request.').format(**data)}
124 ${_('{comment_type} on file `{comment_file}` in pull request.').format(**data)}
125 % else:
125 % else:
126 ${_('{comment_type} on pull request.').format(**data) |n}
126 ${_('{comment_type} on pull request.').format(**data) |n}
127 % endif
127 % endif
128 </a>
128 </a>
129 <div style="margin-top: 10px"></div>
129 <div style="margin-top: 10px"></div>
130 ${_('Pull request')} <code>!${data['pr_id']}: ${data['pr_title']}</code>
130 ${_('Pull request')} <code>!${data['pr_id']}: ${data['pr_title']}</code>
131 </h4>
131 </h4>
132
132
133 </td>
133 </td>
134 </tr>
134 </tr>
135
135
136 </table>
136 </table>
137
137
138 <table style="text-align:left;vertical-align:middle;width: 100%">
138 <table style="text-align:left;vertical-align:middle;width: 100%">
139
139
140 ## spacing def
140 ## spacing def
141 <tr>
141 <tr>
142 <td style="width: 130px"></td>
142 <td style="width: 130px"></td>
143 <td></td>
143 <td></td>
144 </tr>
144 </tr>
145
145
146 % if status_change:
146 % if status_change:
147 <tr>
147 <tr>
148 <td style="padding-right:20px;">${_('Review Status')}:</td>
148 <td style="padding-right:20px;">${_('Review Status')}:</td>
149 <td>
149 <td>
150 % if closing_pr:
150 % if closing_pr:
151 ${_('Closed pull request with status')}: ${base.status_text(status_change, tag_type=status_change_type)}
151 ${_('Closed pull request with status')}: ${base.status_text(status_change, tag_type=status_change_type)}
152 % else:
152 % else:
153 ${_('Submitted review status')}: ${base.status_text(status_change, tag_type=status_change_type)}
153 ${_('Submitted review status')}: ${base.status_text(status_change, tag_type=status_change_type)}
154 % endif
154 % endif
155 </td>
155 </td>
156 </tr>
156 </tr>
157 % endif
157 % endif
158
158
159 <tr>
159 <tr>
160 <td style="padding-right:20px;line-height:20px;">${_('Commit Flow')}:</td>
160 <td style="padding-right:20px;line-height:20px;">${_('Commit Flow')}:</td>
161 <td style="line-height:20px;">
161 <td style="line-height:20px;">
162 ${base.tag_button('{}:{}'.format(data['source_ref_type'], pull_request.source_ref_parts.name))} ${_('of')} ${data['source_repo_url']}
162 ${base.tag_button('{}:{}'.format(data['source_ref_type'], pull_request.source_ref_parts.name))} ${_('of')} ${data['source_repo_url']}
163 &rarr;
163 &rarr;
164 ${base.tag_button('{}:{}'.format(data['target_ref_type'], pull_request.target_ref_parts.name))} ${_('of')} ${data['target_repo_url']}
164 ${base.tag_button('{}:{}'.format(data['target_ref_type'], pull_request.target_ref_parts.name))} ${_('of')} ${data['target_repo_url']}
165 </td>
165 </td>
166 </tr>
166 </tr>
167 <tr>
167 <tr>
168 <td style="padding-right:20px;">${_('Pull request')}:</td>
168 <td style="padding-right:20px;">${_('Pull request')}:</td>
169 <td>
169 <td>
170 <a href="${pull_request_url}" style="${base.link_css()}">
170 <a href="${pull_request_url}" style="${base.link_css()}">
171 !${pull_request.pull_request_id}
171 !${pull_request.pull_request_id}
172 </a>
172 </a>
173 </td>
173 </td>
174 </tr>
174 </tr>
175 % if comment_file:
175 % if comment_file:
176 <tr>
176 <tr>
177 <td style="padding-right:20px;">${_('File')}:</td>
177 <td style="padding-right:20px;">${_('File')}:</td>
178 <td><a href="${pr_comment_url}" style="${base.link_css()}">${_('`{comment_file}` on line {comment_line}').format(**data)}</a></td>
178 <td><a href="${pr_comment_url}" style="${base.link_css()}">${_('`{comment_file}` on line {comment_line}').format(**data)}</a></td>
179 </tr>
179 </tr>
180 % endif
180 % endif
181
181
182 <tr style="border-bottom:1px solid #dbd9da;">
182 <tr style="border-bottom:1px solid #dbd9da;">
183 <td colspan="2" style="padding-right:20px;">
183 <td colspan="2" style="padding-right:20px;">
184 % if comment_type == 'todo':
184 % if comment_type == 'todo':
185 ${_('`TODO` number')} ${comment_id}:
185 ${('Inline' if comment_file else 'General')} ${_('`TODO` number')} ${comment_id}:
186 % else:
186 % else:
187 ${_('`Note` number')} ${comment_id}:
187 ${('Inline' if comment_file else 'General')} ${_('`Note` number')} ${comment_id}:
188 % endif
188 % endif
189 </td>
189 </td>
190 </tr>
190 </tr>
191
191
192 <tr>
192 <tr>
193 <td colspan="2" style="background: #F7F7F7">${h.render(comment_body, renderer=data['renderer_type'], mentions=True)}</td>
193 <td colspan="2" style="background: #F7F7F7">${h.render(comment_body, renderer=data['renderer_type'], mentions=True)}</td>
194 </tr>
194 </tr>
195
195
196 <tr>
196 <tr>
197 <td><a href="${pr_comment_reply_url}">${_('Reply')}</a></td>
197 <td><a href="${pr_comment_reply_url}">${_('Reply')}</a></td>
198 <td></td>
198 <td></td>
199 </tr>
199 </tr>
200 </table>
200 </table>
General Comments 0
You need to be logged in to leave comments. Login now