| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <head> | 2 <head> |
| 3 <title>Build Analyses</title> | 3 <title>Build Analyses</title> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <link rel="stylesheet" href="/common.css"> | 5 <link rel="stylesheet" href="/common.css"> |
| 6 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
"></script> | 6 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
"></script> |
| 7 <script> | 7 <script> |
| 8 parameters = { | 8 parameters = { |
| 9 'triage': '{{triage}}' == '-1' ? undefined : '{{triage}}', | 9 'triage': '{{triage}}' == '-1' ? undefined : '{{triage}}', |
| 10 'days': '{{days}}' == '-1' ? undefined : '{{days}}', | 10 'days': '{{days}}' == '-1' ? undefined : '{{days}}', |
| 11 'count': '{{count}}' == '-1' ? undefined : '{{count}}', | 11 'count': '{{count}}' == '-1' ? undefined : '{{count}}', |
| 12 'result_status': '{{result_status}}' == '-1' ? undefined : '{{result_statu
s}}' | 12 'result_status': '{{result_status}}' == '-1' ? undefined : '{{result_statu
s}}' |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 function CreateUrl() { | 15 function CreateUrl() { |
| 16 var params = []; | 16 var params = []; |
| 17 for(var key in parameters) { | 17 for(var key in parameters) { |
| 18 if (parameters[key] != undefined) { | 18 if (parameters[key] != undefined) { |
| 19 params.push(key + '=' + parameters[key]) | 19 params.push(key + '=' + parameters[key]) |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 | 22 |
| 23 if (params.length == 0) { | 23 if (params.length == 0) { |
| 24 return './list-analyses' | 24 return '/waterfall/list-analyses' |
| 25 } else { | 25 } else { |
| 26 return './list-analyses?' + params.join('&'); | 26 return '/waterfall/list-analyses?' + params.join('&'); |
| 27 } | 27 } |
| 28 } | 28 } |
| 29 | 29 |
| 30 $(document).ready(function() { | 30 $(document).ready(function() { |
| 31 if ('{{result_status}}' != '-1') { | 31 if ('{{result_status}}' != '-1') { |
| 32 $('#result_status').val('{{result_status}}'); | 32 $('#result_status').val('{{result_status}}'); |
| 33 } | 33 } |
| 34 $('#result_status').change(function() { | 34 $('#result_status').change(function() { |
| 35 parameters['result_status'] = $(this).val() == 'default' ? undefined : $
(this).val() | 35 parameters['result_status'] = $(this).val() == 'default' ? undefined : $
(this).val() |
| 36 newUrl = CreateUrl(); | 36 newUrl = CreateUrl(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 61 </select> | 61 </select> |
| 62 </th> | 62 </th> |
| 63 </tr> | 63 </tr> |
| 64 | 64 |
| 65 <tbody> | 65 <tbody> |
| 66 {% for analysis in analyses %} | 66 {% for analysis in analyses %} |
| 67 <tr> | 67 <tr> |
| 68 <td>{{loop.index}}</td> | 68 <td>{{loop.index}}</td> |
| 69 <td>{{analysis.build_start_time}}</td> | 69 <td>{{analysis.build_start_time}}</td> |
| 70 <td>{{analysis.master_name}}, {{analysis.builder_name}}, | 70 <td>{{analysis.master_name}}, {{analysis.builder_name}}, |
| 71 <a href="./build-failure?url=https://build.chromium.org/p | 71 <a href="/waterfall/build-failure?url=https://build.chromium.org/p |
| 72 /{{analysis.master_name}}/builders/{{analysis.builder_name}} | 72 /{{analysis.master_name}}/builders/{{analysis.builder_name}} |
| 73 /builds/{{analysis.build_number}}"> | 73 /builds/{{analysis.build_number}}"> |
| 74 {{analysis.build_number}} | 74 {{analysis.build_number}} |
| 75 </a> | 75 </a> |
| 76 </td> | 76 </td> |
| 77 <td>{{analysis.status_description}}</td> | 77 <td>{{analysis.status_description}}</td> |
| 78 <td> | 78 <td> |
| 79 {% if analysis.suspected_cls %} | 79 {% if analysis.suspected_cls %} |
| 80 {% for suspected_cl in analysis.suspected_cls %} | 80 {% for suspected_cl in analysis.suspected_cls %} |
| 81 <li> | 81 <li> |
| 82 {{suspected_cl.repo_name}}: | 82 {{suspected_cl.repo_name}}: |
| 83 {% if suspected_cl.commit_position %} | 83 {% if suspected_cl.commit_position %} |
| 84 <a href="{{suspected_cl.url}}">{{suspected_cl.commit_position}
}</a> | 84 <a href="{{suspected_cl.url}}">{{suspected_cl.commit_position}
}</a> |
| 85 {% else %} | 85 {% else %} |
| 86 <a href="{{suspected_cl.url}}">{{suspected_cl.revision}}</a> | 86 <a href="{{suspected_cl.url}}">{{suspected_cl.revision}}</a> |
| 87 {% endif %} | 87 {% endif %} |
| 88 </li> | 88 </li> |
| 89 {% endfor %} | 89 {% endfor %} |
| 90 {% endif %} | 90 {% endif %} |
| 91 </td> | 91 </td> |
| 92 <td>{{analysis.result_status}}</td> | 92 <td>{{analysis.result_status}}</td> |
| 93 </tr> | 93 </tr> |
| 94 {% endfor %} | 94 {% endfor %} |
| 95 </tbody> | 95 </tbody> |
| 96 </table> | 96 </table> |
| 97 </div> | 97 </div> |
| 98 </body> | 98 </body> |
| OLD | NEW |