##// END OF EJS Templates
emails: don't use tag type for commit flow in pull-request type emails....
ergo -
r4104:0ecc8449 default
parent child Browse files
Show More
@@ -1,201 +1,201 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 * ${_('Comment link')}: ${pr_comment_url}
60 * ${_('Comment link')}: ${pr_comment_url}
61
61
62 * ${_('Pull Request')}: !${pull_request.pull_request_id}
62 * ${_('Pull Request')}: !${pull_request.pull_request_id}
63
63
64 * ${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))}
64 * ${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))}
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 ${('Inline' if comment_file else 'General')} ${_('`TODO` number')} ${comment_id}:
78 ${('Inline' if comment_file else 'General')} ${_('`TODO` number')} ${comment_id}:
79 % else:
79 % else:
80 ${('Inline' if comment_file else 'General')} ${_('`Note` number')} ${comment_id}:
80 ${('Inline' if comment_file else 'General')} ${_('`Note` number')} ${comment_id}:
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 <tr>
158 <tr>
159 <td style="padding-right:20px;">${_('Pull request')}:</td>
159 <td style="padding-right:20px;">${_('Pull request')}:</td>
160 <td>
160 <td>
161 <a href="${pull_request_url}" style="${base.link_css()}">
161 <a href="${pull_request_url}" style="${base.link_css()}">
162 !${pull_request.pull_request_id}
162 !${pull_request.pull_request_id}
163 </a>
163 </a>
164 </td>
164 </td>
165 </tr>
165 </tr>
166
166
167 <tr>
167 <tr>
168 <td style="padding-right:20px;line-height:20px;">${_('Commit Flow')}:</td>
168 <td style="padding-right:20px;line-height:20px;">${_('Commit Flow')}:</td>
169 <td style="line-height:20px;">
169 <td style="line-height:20px;">
170 ${base.tag_button('{}:{}'.format(data['source_ref_type'], pull_request.source_ref_parts.name))} ${_('of')} ${data['source_repo_url']}
170 <code>${'{}:{}'.format(data['source_ref_type'], pull_request.source_ref_parts.name)}</code> ${_('of')} ${data['source_repo_url']}
171 &rarr;
171 &rarr;
172 ${base.tag_button('{}:{}'.format(data['target_ref_type'], pull_request.target_ref_parts.name))} ${_('of')} ${data['target_repo_url']}
172 <code>${'{}:{}'.format(data['target_ref_type'], pull_request.target_ref_parts.name)}</code> ${_('of')} ${data['target_repo_url']}
173 </td>
173 </td>
174 </tr>
174 </tr>
175
175
176 % if comment_file:
176 % if comment_file:
177 <tr>
177 <tr>
178 <td style="padding-right:20px;">${_('File')}:</td>
178 <td style="padding-right:20px;">${_('File')}:</td>
179 <td><a href="${pr_comment_url}" style="${base.link_css()}">${_('`{comment_file}` on line {comment_line}').format(**data)}</a></td>
179 <td><a href="${pr_comment_url}" style="${base.link_css()}">${_('`{comment_file}` on line {comment_line}').format(**data)}</a></td>
180 </tr>
180 </tr>
181 % endif
181 % endif
182
182
183 <tr style="border-bottom:1px solid #dbd9da;">
183 <tr style="border-bottom:1px solid #dbd9da;">
184 <td colspan="2" style="padding-right:20px;">
184 <td colspan="2" style="padding-right:20px;">
185 % if comment_type == 'todo':
185 % if comment_type == 'todo':
186 ${('Inline' if comment_file else 'General')} ${_('`TODO` number')} ${comment_id}:
186 ${('Inline' if comment_file else 'General')} ${_('`TODO` number')} ${comment_id}:
187 % else:
187 % else:
188 ${('Inline' if comment_file else 'General')} ${_('`Note` number')} ${comment_id}:
188 ${('Inline' if comment_file else 'General')} ${_('`Note` number')} ${comment_id}:
189 % endif
189 % endif
190 </td>
190 </td>
191 </tr>
191 </tr>
192
192
193 <tr>
193 <tr>
194 <td colspan="2" style="background: #F7F7F7">${h.render(comment_body, renderer=data['renderer_type'], mentions=True)}</td>
194 <td colspan="2" style="background: #F7F7F7">${h.render(comment_body, renderer=data['renderer_type'], mentions=True)}</td>
195 </tr>
195 </tr>
196
196
197 <tr>
197 <tr>
198 <td><a href="${pr_comment_reply_url}">${_('Reply')}</a></td>
198 <td><a href="${pr_comment_reply_url}">${_('Reply')}</a></td>
199 <td></td>
199 <td></td>
200 </tr>
200 </tr>
201 </table>
201 </table>
@@ -1,143 +1,143 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 'pr_id': pull_request.pull_request_id,
10 'pr_id': pull_request.pull_request_id,
11 'pr_title': pull_request.title,
11 'pr_title': pull_request.title,
12 }
12 }
13 %>
13 %>
14
14
15 ${_('{user} requested a pull request review. !{pr_id}: "{pr_title}"').format(**data) |n}
15 ${_('{user} requested a pull request review. !{pr_id}: "{pr_title}"').format(**data) |n}
16 </%def>
16 </%def>
17
17
18 ## PLAINTEXT VERSION OF BODY
18 ## PLAINTEXT VERSION OF BODY
19 <%def name="body_plaintext()" filter="n,trim">
19 <%def name="body_plaintext()" filter="n,trim">
20 <%
20 <%
21 data = {
21 data = {
22 'user': h.person(user),
22 'user': h.person(user),
23 'pr_id': pull_request.pull_request_id,
23 'pr_id': pull_request.pull_request_id,
24 'pr_title': pull_request.title,
24 'pr_title': pull_request.title,
25 'source_ref_type': pull_request.source_ref_parts.type,
25 'source_ref_type': pull_request.source_ref_parts.type,
26 'source_ref_name': pull_request.source_ref_parts.name,
26 'source_ref_name': pull_request.source_ref_parts.name,
27 'target_ref_type': pull_request.target_ref_parts.type,
27 'target_ref_type': pull_request.target_ref_parts.type,
28 'target_ref_name': pull_request.target_ref_parts.name,
28 'target_ref_name': pull_request.target_ref_parts.name,
29 'repo_url': pull_request_source_repo_url,
29 'repo_url': pull_request_source_repo_url,
30 'source_repo': pull_request_source_repo.repo_name,
30 'source_repo': pull_request_source_repo.repo_name,
31 'target_repo': pull_request_target_repo.repo_name,
31 'target_repo': pull_request_target_repo.repo_name,
32 'source_repo_url': pull_request_source_repo_url,
32 'source_repo_url': pull_request_source_repo_url,
33 'target_repo_url': pull_request_target_repo_url,
33 'target_repo_url': pull_request_target_repo_url,
34 }
34 }
35 %>
35 %>
36
36
37 * ${_('Pull Request link')}: ${pull_request_url}
37 * ${_('Pull Request link')}: ${pull_request_url}
38
38
39 * ${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))}
39 * ${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))}
40
40
41 * ${_('Title')}: ${pull_request.title}
41 * ${_('Title')}: ${pull_request.title}
42
42
43 * ${_('Description')}:
43 * ${_('Description')}:
44
44
45 ${pull_request.description | trim}
45 ${pull_request.description | trim}
46
46
47
47
48 * ${_ungettext('Commit (%(num)s)', 'Commits (%(num)s)', len(pull_request_commits) ) % {'num': len(pull_request_commits)}}:
48 * ${_ungettext('Commit (%(num)s)', 'Commits (%(num)s)', len(pull_request_commits) ) % {'num': len(pull_request_commits)}}:
49
49
50 % for commit_id, message in pull_request_commits:
50 % for commit_id, message in pull_request_commits:
51 - ${h.short_id(commit_id)}
51 - ${h.short_id(commit_id)}
52 ${h.chop_at_smart(message, '\n', suffix_if_chopped='...')}
52 ${h.chop_at_smart(message, '\n', suffix_if_chopped='...')}
53
53
54 % endfor
54 % endfor
55
55
56 ---
56 ---
57 ${self.plaintext_footer()}
57 ${self.plaintext_footer()}
58 </%def>
58 </%def>
59 <%
59 <%
60 data = {
60 data = {
61 'user': h.person(user),
61 'user': h.person(user),
62 'pr_id': pull_request.pull_request_id,
62 'pr_id': pull_request.pull_request_id,
63 'pr_title': pull_request.title,
63 'pr_title': pull_request.title,
64 'source_ref_type': pull_request.source_ref_parts.type,
64 'source_ref_type': pull_request.source_ref_parts.type,
65 'source_ref_name': pull_request.source_ref_parts.name,
65 'source_ref_name': pull_request.source_ref_parts.name,
66 'target_ref_type': pull_request.target_ref_parts.type,
66 'target_ref_type': pull_request.target_ref_parts.type,
67 'target_ref_name': pull_request.target_ref_parts.name,
67 'target_ref_name': pull_request.target_ref_parts.name,
68 'repo_url': pull_request_source_repo_url,
68 'repo_url': pull_request_source_repo_url,
69 'source_repo': pull_request_source_repo.repo_name,
69 'source_repo': pull_request_source_repo.repo_name,
70 'target_repo': pull_request_target_repo.repo_name,
70 'target_repo': pull_request_target_repo.repo_name,
71 'source_repo_url': h.link_to(pull_request_source_repo.repo_name, pull_request_source_repo_url),
71 'source_repo_url': h.link_to(pull_request_source_repo.repo_name, pull_request_source_repo_url),
72 'target_repo_url': h.link_to(pull_request_target_repo.repo_name, pull_request_target_repo_url),
72 'target_repo_url': h.link_to(pull_request_target_repo.repo_name, pull_request_target_repo_url),
73 }
73 }
74 %>
74 %>
75
75
76 <table style="text-align:left;vertical-align:middle;width: 100%">
76 <table style="text-align:left;vertical-align:middle;width: 100%">
77 <tr>
77 <tr>
78 <td style="width:100%;border-bottom:1px solid #dbd9da;">
78 <td style="width:100%;border-bottom:1px solid #dbd9da;">
79
79
80 <h4 style="margin: 0">
80 <h4 style="margin: 0">
81 <div style="margin-bottom: 4px; color:#7E7F7F">
81 <div style="margin-bottom: 4px; color:#7E7F7F">
82 @${h.person(user.username)}
82 @${h.person(user.username)}
83 </div>
83 </div>
84 ${_('requested a')}
84 ${_('requested a')}
85 <a href="${pull_request_url}" style="${base.link_css()}">
85 <a href="${pull_request_url}" style="${base.link_css()}">
86 ${_('pull request review.').format(**data) }
86 ${_('pull request review.').format(**data) }
87 </a>
87 </a>
88 <div style="margin-top: 10px"></div>
88 <div style="margin-top: 10px"></div>
89 ${_('Pull request')} <code>!${data['pr_id']}: ${data['pr_title']}</code>
89 ${_('Pull request')} <code>!${data['pr_id']}: ${data['pr_title']}</code>
90 </h4>
90 </h4>
91
91
92 </td>
92 </td>
93 </tr>
93 </tr>
94
94
95 </table>
95 </table>
96
96
97 <table style="text-align:left;vertical-align:middle;width: 100%">
97 <table style="text-align:left;vertical-align:middle;width: 100%">
98 ## spacing def
98 ## spacing def
99 <tr>
99 <tr>
100 <td style="width: 130px"></td>
100 <td style="width: 130px"></td>
101 <td></td>
101 <td></td>
102 </tr>
102 </tr>
103
103
104 <tr>
104 <tr>
105 <td style="padding-right:20px;">${_('Pull request')}:</td>
105 <td style="padding-right:20px;">${_('Pull request')}:</td>
106 <td>
106 <td>
107 <a href="${pull_request_url}" style="${base.link_css()}">
107 <a href="${pull_request_url}" style="${base.link_css()}">
108 !${pull_request.pull_request_id}
108 !${pull_request.pull_request_id}
109 </a>
109 </a>
110 </td>
110 </td>
111 </tr>
111 </tr>
112
112
113 <tr>
113 <tr>
114 <td style="padding-right:20px;line-height:20px;">${_('Commit Flow')}:</td>
114 <td style="padding-right:20px;line-height:20px;">${_('Commit Flow')}:</td>
115 <td style="line-height:20px;">
115 <td style="line-height:20px;">
116 ${base.tag_button('{}:{}'.format(data['source_ref_type'], pull_request.source_ref_parts.name))} ${_('of')} ${data['source_repo_url']}
116 <code>${'{}:{}'.format(data['source_ref_type'], pull_request.source_ref_parts.name)}</code> ${_('of')} ${data['source_repo_url']}
117 &rarr;
117 &rarr;
118 ${base.tag_button('{}:{}'.format(data['target_ref_type'], pull_request.target_ref_parts.name))} ${_('of')} ${data['target_repo_url']}
118 <code>${'{}:{}'.format(data['target_ref_type'], pull_request.target_ref_parts.name)}</code> ${_('of')} ${data['target_repo_url']}
119 </td>
119 </td>
120 </tr>
120 </tr>
121
121
122 <tr>
122 <tr>
123 <td style="padding-right:20px;">${_('Description')}:</td>
123 <td style="padding-right:20px;">${_('Description')}:</td>
124 <td style="white-space:pre-wrap"><code>${pull_request.description | trim}</code></td>
124 <td style="white-space:pre-wrap"><code>${pull_request.description | trim}</code></td>
125 </tr>
125 </tr>
126 <tr>
126 <tr>
127 <td style="padding-right:20px;">${_ungettext('Commit (%(num)s)', 'Commits (%(num)s)', len(pull_request_commits)) % {'num': len(pull_request_commits)}}:</td>
127 <td style="padding-right:20px;">${_ungettext('Commit (%(num)s)', 'Commits (%(num)s)', len(pull_request_commits)) % {'num': len(pull_request_commits)}}:</td>
128 <td></td>
128 <td></td>
129 </tr>
129 </tr>
130
130
131 <tr>
131 <tr>
132 <td colspan="2">
132 <td colspan="2">
133 <ol style="margin:0 0 0 1em;padding:0;text-align:left;">
133 <ol style="margin:0 0 0 1em;padding:0;text-align:left;">
134 % for commit_id, message in pull_request_commits:
134 % for commit_id, message in pull_request_commits:
135 <li style="margin:0 0 1em;">
135 <li style="margin:0 0 1em;">
136 <pre style="margin:0 0 .5em"><a href="${h.route_path('repo_commit', repo_name=pull_request_source_repo.repo_name, commit_id=commit_id)}" style="${base.link_css()}">${h.short_id(commit_id)}</a></pre>
136 <pre style="margin:0 0 .5em"><a href="${h.route_path('repo_commit', repo_name=pull_request_source_repo.repo_name, commit_id=commit_id)}" style="${base.link_css()}">${h.short_id(commit_id)}</a></pre>
137 ${h.chop_at_smart(message, '\n', suffix_if_chopped='...')}
137 ${h.chop_at_smart(message, '\n', suffix_if_chopped='...')}
138 </li>
138 </li>
139 % endfor
139 % endfor
140 </ol>
140 </ol>
141 </td>
141 </td>
142 </tr>
142 </tr>
143 </table>
143 </table>
General Comments 0
You need to be logged in to leave comments. Login now