# HG changeset patch # User Daniel Dourvaris # Date 2018-02-28 11:31:55 # Node ID f48c0619be342f16ee223c996927db8e7964f432 # Parent 97776fe43c81115ac452639933ab28aead29c503 integrations: show no commits for email integration diff --git a/rhodecode/integrations/types/email.py b/rhodecode/integrations/types/email.py --- a/rhodecode/integrations/types/email.py +++ b/rhodecode/integrations/types/email.py @@ -127,11 +127,15 @@ repo_push_template_html = Template(''' - % for commit in data['push']['commits']: - ${commit['short_id']} by ${commit['author']} at ${commit['date']}
- ${commit['message_html']}
-
- % endfor + % if data['push']['commits']: + % for commit in data['push']['commits']: + ${commit['short_id']} by ${commit['author']} at ${commit['date']}
+ ${commit['message_html']}
+
+ % endfor + % else: + No commit data + % endif @@ -147,8 +151,6 @@ repo_push_template_html = Template(''' ''') - - class EmailSettingsSchema(colander.Schema): @colander.instantiate(validator=colander.Length(min=1)) class recipients(colander.SequenceSchema):