Chromium Code Reviews| Index: appengine/findit/templates/crash/fracas_result_feedback.html |
| diff --git a/appengine/findit/templates/crash/fracas_result_feedback.html b/appengine/findit/templates/crash/fracas_result_feedback.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f13af1e4a9bda82631e39f93199a99a7518d26f1 |
| --- /dev/null |
| +++ b/appengine/findit/templates/crash/fracas_result_feedback.html |
| @@ -0,0 +1,172 @@ |
| +<!DOCTYPE html> |
| +<head> |
| + <title>Fracas result feedback</title> |
| + <meta charset="utf-8"> |
| + <link rel="stylesheet" href="/common.css"> |
| + <style> |
| + .error { |
| + color: #ffffff; |
| + background-color: #e98080; |
| + border-color: #a77272; |
| + } |
| + </style> |
| + <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/themes/smoothness/jquery-ui.css"> |
| + <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> |
| + <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script> |
| + <script> |
| + function CreateUrl(base_url, parameters) { |
| + var params = []; |
| + for(var key in parameters) { |
| + if (parameters[key] != undefined) { |
| + params.push(key + '=' + parameters[key]); |
| + } |
| + } |
| + |
| + if (params.length == 0) { |
| + return base_url; |
| + } else { |
| + return base_url + '?' + params.join('&'); |
| + } |
| + } |
| + |
| + function ConstructMonorailUrl() { |
|
Martin Barbella
2016/06/17 22:14:32
Any reason why this has to be done in script? It f
Sharu Jiang
2016/06/17 23:58:22
This is I want to get 'window.location.href' and I
Martin Barbella
2016/06/22 17:23:12
Should be fine as-is based on that. Still, script
|
| + var parameters = {}; |
| + parameters.status = 'Unconfirmed'; |
| + parameters.labels = 'Pri-2,Restrict-View-Google'; |
| + parameters.components = 'Tool>Test>Findit'; |
| + parameters.summary = encodeURIComponent('[Findit] Findit bug or feature'); |
| + parameters.comment = encodeURIComponent( |
| + 'Signature: {{signature}}\nVersion: {{version}}\n' + |
| + 'Channel: {{channel}}\nPlatform: {{platform}}\n\n' + |
| + 'Findit result: ' + window.location.href + |
| + '\n\nWhat is the bug or feature'); |
| + return CreateUrl('https://code.google.com/p/chromium/issues/entry?', |
| + parameters); |
| + } |
| + |
| + $(document).ready(function() { |
| + $('#monorail-bug').attr('href', ConstructMonorailUrl()); |
| + }) |
| + </script> |
| +</head> |
| +<body> |
| + <div> |
| + <b>Crash:</b> (<a href="#" id='monorail-bug'>File a Findit bug</a>) |
| + <br> |
| + Signature: {{signature}}<br> |
| + Version: <a href="https://chromium.googlesource.com/chromium/src.git/+/{{version}}">{{version}}</a><br> |
| + Channel: {{channel}}<br> |
| + Platform: {{platform}}<br> |
| + Request time: {{request_time}}<br> |
| + <br> |
| + </div> |
| + |
| + <div> |
| + <b> Stacktrace: </b> |
| + <pre>{{stack_trace}}</pre> |
| + </div> |
| + |
| + <div> |
| + <br> |
| + <b> Historical metadata (last 20 versions):</b> |
|
Martin Barbella
2016/06/17 22:14:32
Could you post a screenshot of what this looks lik
Sharu Jiang
2016/06/17 23:58:22
I already deployed a version. 2 steps to open it.
|
| + <table id="reliable_failures_table"> |
| + <thead> |
| + <tr> |
| + <td align="center">Version</td> |
| + {% for metadata in historical_metadata %} |
| + <td align="center" width="40"> {{metadata.chrome_version}} </td> |
| + {% endfor %} |
| + </tr> |
| + <tr> |
| + <td align="center">CPM</td> |
| + {% for metadata in historical_metadata %} |
| + <td align="center" width="40"> {{metadata.cpm}} </td> |
| + {% endfor %} |
| + </tr> |
| + <tr> |
| + <td align="center">Total clients</td> |
| + {% for metadata in historical_metadata %} |
| + <td align="center" width="40"> {{metadata.client_number}} </td> |
| + {% endfor %} |
| + </tr> |
| + <tr> |
| + <td align="center">Total reports</td> |
| + {% for metadata in historical_metadata %} |
| + <td align="center" width="40"> {{metadata.report_number}} </td> |
| + {% endfor %} |
| + </tr> |
| + </thead> |
| + <tbody> |
| + </tbody> |
| + </table> |
| + </div> |
| + |
| + <div> |
| + <br> |
| + <b> Regression range: </b> |
| + {% if regression_range %} |
| + <a href="https://chromium.googlesource.com/chromium/src/+log/{{regression_range[0]}}..{{regression_range[1]}}?pretty=fuller">{{regression_range[0]}} : {{regression_range[1]}}</a> |
| + {% else %} |
| + Not found |
| + {% endif %} |
| + <br> |
| + <div> |
| + |
| + <div> |
| + <br><br> |
| + {% if analysis_completed %} |
| + {% if analysis_failed %} |
| + <span class="error">No result because of some error in analysis!</span> |
| + {% else %} |
| + <b> Suspected cls: </b> |
| + {% if suspected_cls %} |
| + <table id="suspected_cls_table"> |
| + <tr> |
| + <th>Suspected cls</th> |
| + <th>Score</th> |
| + <th>Reason</th> |
| + </tr> |
| + <tbody> |
| + {% for suspected_cl in suspected_cls %} |
| + <tr> |
| + <td align="center"> <a href={{suspected_cl.url}}>{{suspected_cl.revision}}</a> </td> |
| + <td align="center"> {{suspected_cl.confidence}} </td> |
| + <td align="left"><pre>{{suspected_cl.reason}}</pre></td> |
| + </tr> |
| + {% endfor %} |
| + </tbody> |
| + </table> |
| + {% else %} |
| + Not found <br> |
| + {% endif %} |
| + {% endif %} |
| + {% endif %} |
| + </div> |
| + |
| + <div> |
| + <br><br> |
| + <b> Suspected project: </b> |
| + {% if suspected_project %} |
| + {{suspected_project}} |
| + {% else %} |
| + Not found |
| + {% endif %} |
| + <br> |
| + </div> |
| + |
| + <div> |
| + <br><br> |
| + <b> Suspected components:</b> |
| + {% if suspected_components %} |
| + <br> |
| + {% for component in suspected_components %} |
| + <li> |
| + {{component}} |
| + </li> |
| + {% endfor %} |
| + {% else %} |
| + Not found <br> |
| + {% endif %} |
| + </div> |
| + |
| +</body> |