##// END OF EJS Templates
integrations: use all caps template names.
marcink -
r3117:99ff31e3 default
parent child Browse files
Show More
@@ -35,7 +35,7 b' from rhodecode.integrations.types.base i'
35
35
36 log = logging.getLogger(__name__)
36 log = logging.getLogger(__name__)
37
37
38 repo_push_template_plaintext = Template('''
38 REPO_PUSH_TEMPLATE_PLAINTEXT = Template('''
39 Commits:
39 Commits:
40
40
41 % for commit in data['push']['commits']:
41 % for commit in data['push']['commits']:
@@ -46,9 +46,7 b' Commits:'
46 % endfor
46 % endfor
47 ''')
47 ''')
48
48
49 ## TODO (marcink): think about putting this into a file, or use base.mako email template
49 REPO_PUSH_TEMPLATE_HTML = Template('''
50
51 repo_push_template_html = Template('''
52 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
50 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
53 <html xmlns="http://www.w3.org/1999/xhtml">
51 <html xmlns="http://www.w3.org/1999/xhtml">
54 <head>
52 <head>
@@ -283,13 +281,13 b' def repo_push_handler(data, settings):'
283 branch['name'] for branch in data['push']['branches']))
281 branch['name'] for branch in data['push']['branches']))
284
282
285 email_body_plaintext = render_with_traceback(
283 email_body_plaintext = render_with_traceback(
286 repo_push_template_plaintext,
284 REPO_PUSH_TEMPLATE_PLAINTEXT,
287 data=data,
285 data=data,
288 subject=subject,
286 subject=subject,
289 instance_url=server_url)
287 instance_url=server_url)
290
288
291 email_body_html = render_with_traceback(
289 email_body_html = render_with_traceback(
292 repo_push_template_html,
290 REPO_PUSH_TEMPLATE_HTML,
293 data=data,
291 data=data,
294 subject=subject,
292 subject=subject,
295 instance_url=server_url)
293 instance_url=server_url)
General Comments 0
You need to be logged in to leave comments. Login now