| OLD | NEW |
| (Empty) |
| 1 <head> | |
| 2 <link rel="import" href="class_ref.html"> | |
| 3 <link rel="import" href="error_view.html"> | |
| 4 <link rel="import" href="field_ref.html"> | |
| 5 <link rel="import" href="instance_ref.html"> | |
| 6 <link rel="import" href="nav_bar.html"> | |
| 7 <link rel="import" href="observatory_element.html"> | |
| 8 </head> | |
| 9 <polymer-element name="instance-view" extends="observatory-element"> | |
| 10 <template> | |
| 11 <nav-bar> | |
| 12 <top-nav-menu></top-nav-menu> | |
| 13 <isolate-nav-menu app="{{ app }}" isolate="{{ app.locationManager.currentI
solate() }}"> | |
| 14 </isolate-nav-menu> | |
| 15 <!-- TODO(turnidge): Add library nav menu here. --> | |
| 16 <class-nav-menu app="{{ app }}" cls="{{ instance['class'] }}"></class-nav-
menu> | |
| 17 <nav-menu link="." anchor="instance" last="{{ true }}"></nav-menu> | |
| 18 <!-- TODO(turnidge): Add nav refresh here. --> | |
| 19 </nav-bar> | |
| 20 | |
| 21 <div class="row"> | |
| 22 <div class="col-md-8 col-md-offset-2"> | |
| 23 <div class="panel panel-warning"> | |
| 24 <div class="panel-heading"> | |
| 25 Instance of | |
| 26 <class-ref app="{{ app }}" ref="{{ instance['class'] }}"></class-ref> | |
| 27 </div> | |
| 28 <div class="panel-body"> | |
| 29 <template if="{{ instance['error'] == null }}"> | |
| 30 <table class="table table-hover"> | |
| 31 <tbody> | |
| 32 <tr> | |
| 33 <td>Preview</td><td>{{ instance['preview'] }}</td> | |
| 34 </tr> | |
| 35 </tbody> | |
| 36 </table> | |
| 37 <blockquote><strong>Fields</strong></blockquote> | |
| 38 <table class="table table-hover"> | |
| 39 <tbody> | |
| 40 <tr template repeat="{{ field in instance['fields'] }}"> | |
| 41 <td><field-ref app="{{ app }}" ref="{{ field['decl'] }}"></fie
ld-ref></td> | |
| 42 <td><instance-ref app="{{ app }}" ref="{{ field['value'] }}"><
/instance-ref></td> | |
| 43 </tr> | |
| 44 </tbody> | |
| 45 </table> | |
| 46 </template> | |
| 47 <template if="{{ instance['error'] != null }}"> | |
| 48 <error-view error_obj="{{ instance['error'] }}"></error-view> | |
| 49 </template> | |
| 50 </div> | |
| 51 </div> | |
| 52 </div> | |
| 53 </div> | |
| 54 </template> | |
| 55 <script type="application/dart" src="instance_view.dart"></script> | |
| 56 </polymer-element> | |
| OLD | NEW |