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

Side by Side Diff: src/report/templates.py

Issue 1662833005: Fixes Caterpillar crashing while generating report. (Closed) Base URL: https://github.com/chromium/caterpillar.git@master
Patch Set: Skipped broken test. Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « src/report/report.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python2 1 #!/usr/bin/env python2
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 3
4 # Copyright 2016 Google Inc. All Rights Reserved. 4 # Copyright 2016 Google Inc. All Rights Reserved.
5 # 5 #
6 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License. 7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at 8 # You may obtain a copy of the License at
9 # 9 #
10 # http://www.apache.org/licenses/LICENSE-2.0 10 # http://www.apache.org/licenses/LICENSE-2.0
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 </section> 151 </section>
152 {% endif %} 152 {% endif %}
153 """) 153 """)
154 154
155 155
156 TEMPLATE_FULL = jinja2.Template(""" 156 TEMPLATE_FULL = jinja2.Template("""
157 <!DOCTYPE html> 157 <!DOCTYPE html>
158 <html lang="en"> 158 <html lang="en">
159 <head> 159 <head>
160 <meta charset="utf-8"> 160 <meta charset="utf-8">
161 <title>Caterpillar Conversion Report: {{ ca_manifest.name }}</title> 161 <title>Caterpillar Conversion Report: {{ chrome_app_manifest.name }}</title>
162 <link rel="stylesheet" href="report.css"> 162 <link rel="stylesheet" href="report.css">
163 <body> 163 <body>
164 <div id="report"> 164 <div id="report">
165 <h1> 165 <h1>
166 Caterpillar Conversion Report: 166 Caterpillar Conversion Report:
167 <span class="name">{{ chrome_app_manifest.name }}</span> 167 <span class="name">{{ chrome_app_manifest.name }}</span>
168 </h1> 168 </h1>
169 {{ summary }} 169 {{ summary }}
170 {{ general_warnings }} 170 {{ general_warnings }}
171 {{ polyfilled }} 171 {{ polyfilled }}
172 {{ not_polyfilled }} 172 {{ not_polyfilled }}
173 </div> 173 </div>
174 <footer> 174 <footer>
175 Generated by 175 Generated by
176 <a href="https://github.com/chromium/caterpillar">Caterpillar</a>. 176 <a href="https://github.com/chromium/caterpillar">Caterpillar</a>.
177 </footer> 177 </footer>
178 <script src="bower_components/code-prettify/src/run_prettify.js"> 178 <script src="bower_components/code-prettify/src/run_prettify.js">
179 </script> 179 </script>
180 </body> 180 </body>
181 </html> 181 </html>
182 """) 182 """)
OLDNEW
« no previous file with comments | « src/report/report.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698