| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <link rel="import" href="function_ref.html"> | |
| 3 <link rel="import" href="observatory_element.html"> | 2 <link rel="import" href="observatory_element.html"> |
| 4 <link rel="import" href="script_ref.html"> | 3 <link rel="import" href="stack_frame.html"> |
| 5 </head> | 4 </head> |
| 6 <polymer-element name="stack-trace" extends="observatory-element"> | 5 <polymer-element name="stack-trace" extends="observatory-element"> |
| 7 <template> | 6 <template> |
| 8 <div class="alert alert-info">Stack Trace</div> | 7 <template if="{{ trace['members'].isEmpty }}"> |
| 9 <table class="table table-hover"> | 8 <div class="col-md-1"></div> |
| 10 <thead> | 9 <div class="col-md-11"> |
| 11 <tr> | 10 <em>No stack</em> |
| 12 <th>Depth</th> | 11 </div> |
| 13 <th>Function</th> | 12 </template> |
| 14 <th>Script</th> | 13 <template if="{{ trace['members'].isNotEmpty }}"> |
| 15 <th>Line</th> | 14 <ul class="list-group"> |
| 16 </tr> | 15 <template repeat="{{ frame in trace['members'] }}"> |
| 17 </thead> | 16 <li class="list-group-item"> |
| 18 <tbody> | 17 <stack-frame app="{{ app }}" frame="{{ frame }}"></stack-frame> |
| 19 <tr template repeat="{{ frame in trace['members'] }}"> | 18 </li> |
| 20 <td></td> | 19 </template> |
| 21 <td><function-ref app="{{ app }}" ref="{{ frame['function'] }}"></functi
on-ref></td> | 20 </ul> |
| 22 <td><script-ref app="{{ app }}" ref="{{ frame['script'] }}"></script-ref
></td> | 21 </template> |
| 23 <td>{{ frame['line'] }}</td> | |
| 24 </tr> | |
| 25 </tbody> | |
| 26 </table> | |
| 27 </template> | 22 </template> |
| 28 <script type="application/dart" src="stack_trace.dart"></script> | 23 <script type="application/dart" src="stack_trace.dart"></script> |
| 29 </polymer-element> | 24 </polymer-element> |
| OLD | NEW |