Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Unified Diff: templates/waterfall_mail.html

Issue 19878007: Add build mailer capability to support gatekeeper_ng. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/chromium-build@master
Patch Set: Rebase to latest master Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « templates/main_mailer.html ('k') | tests/test_mailer/expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/waterfall_mail.html
diff --git a/templates/waterfall_mail.html b/templates/waterfall_mail.html
new file mode 100644
index 0000000000000000000000000000000000000000..c951b3c64c24177f0502658ec7743727fee0285a
--- /dev/null
+++ b/templates/waterfall_mail.html
@@ -0,0 +1,87 @@
+{% extends "base_mail.html" %}
+
+{% block buildbox%}
+
+{% set results = ["success", "warnings", "failure", "skipped", "exception",
+ "retry"] %}
+{% set styles = {
+ 'exception': ('color: #FFFFFF; background-color: #e0b0ff; '
+ 'border-color: #ACA0B3;'),
+ 'failure': ('color: #FFFFFF; background-color: #e98080; '
+ 'border-color: #A77272;'),
+ 'retry': ('color: #FFFFFF; background-color: #e0b0ff; '
+ 'border-color: #ACA0B3;'),
+ 'offline': ('color: #FFFFFF; background-color: #e0b0ff; '
+ 'border-color: #ACA0B3;'),
+ 'skipped': '',
+ 'start': ('color: #666666; background-color: #fffc6c;'
+ 'border-color: #C5C56D;'),
+ 'success': ('color: #FFFFFF; background-color: #8fdf5f; '
+ 'border-color: #4F8530;'),
+ 'warnings': ('color: #FFFFFF; background-color: #ffc343; '
+ 'border-color: #C29D46;'),
+ }
+%}
+
+{% set buildername = build_status['builderName'] %}
+<tr><td style="{{styles[results[(build_status['result'])]]}}"><a title="Reason: {{build_status['reason']}}" href="{{waterfall_url}}builders/{{buildername|urlquote}}/builds/{{build_status['number']}}">Build {{build_status['number']}}</a></td></tr>
+{% for step in build_status['steps'] if step['started'] and step['text'] %}
+ <tr><td style="{{styles[results[step['results']]]}}">
+ {% for line in step['text'] %}
+ {{line}}<br/>
+ {% endfor %}
+ {% for steplog in step['logs'] %}
+ <a href="{{steplog[1]}}">{{steplog[0]}}</a><br/>
+ {% endfor %}
+ {% for urlname, target in step['urls'].iteritems() %}
+ <a href="{{target}}">{{urlname}}</a><br/>
+ {% endfor %}
+ </td></tr>
+{% endfor %}
+{% endblock %}
+
+
+{% block changes %}
+ {% for change in build_status['changes'] %}
+ <p>Changed by: <b>{{change['who']}}</b><br />
+ Changed at: <b>{{change['at']}}</b><br />
+ {% if change['repository'] %}
+ Repository: <b>{{change['repository']}}</b><br />
+ {% endif %}
+ {% if change['branch'] %}
+ Branch: <b>{{change['branch']}}</b><br />
+ {% endif %}
+ {% if change['revision'] %}
+ {% if change.get('revlink') %}
+ Revision: <a href="{{change['revlink']}}"><b>{{change['revision']}}</b></a>
+ {% else %}
+ Revision: <b>{{change['revision']}}</b><br />
+ {% endif %}
+ {% endif %}
+ <br />
+
+ Changed files:
+ <ul>
+ {% for f in change['files'] %}
+ <li>
+ {% if f['url'] %}
+ <a href="{{f['url']}}"><b>{{f['name']}}</b></a>
+ {% else %}
+ <b>{{f['name']}}</b>{% endif %}</li>
+ {% endfor %}
+ </ul>
+
+ Comments:
+ <pre>{{change['comments']}}</pre>
+
+ Properties:
+ <ul>
+ {% for prop in change['properties'] %}
+ <li>
+ {{prop[0]}}: {{prop[1]}}<br/></li>
+ {% endfor %}
+ </ul>
+ </p>
+ {% endfor %}
+{% endblock %}
+
« no previous file with comments | « templates/main_mailer.html ('k') | tests/test_mailer/expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698