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