| OLD | NEW |
| (Empty) | |
| 1 <head> |
| 2 <link rel="import" href="observatory_element.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 </head> |
| 7 <polymer-element name="instance-view" extends="observatory-element"> |
| 8 <template> |
| 9 <div class="row"> |
| 10 <div class="col-md-8 col-md-offset-2"> |
| 11 <div class="panel panel-warning"> |
| 12 <div class="panel-heading"> |
| 13 Instance of |
| 14 <a href="{{ app.locationManager.currentIsolateClassLink(instance['class
']['id'])}}"> |
| 15 {{ instance['class']['user_name'] }} |
| 16 </a> |
| 17 </div> |
| 18 <div class="panel-body"> |
| 19 <template if="{{ instance['error'] == null }}"> |
| 20 <table class="table table-hover"> |
| 21 <tbody> |
| 22 <tr> |
| 23 <td>Preview</td><td>{{ instance['preview'] }}</td> |
| 24 </tr> |
| 25 </tbody> |
| 26 </table> |
| 27 <blockquote><strong>Fields</strong></blockquote> |
| 28 <table class="table table-hover"> |
| 29 <tbody> |
| 30 <tr template repeat="{{ field in instance['fields'] }}"> |
| 31 <td><field-ref app="{{ app }}" field="{{ field }}"></field-ref
></td> |
| 32 <td><instance-ref app="{{ app }}" instance="{{ field['value']
}}"></instance-ref></td> |
| 33 </tr> |
| 34 </tbody> |
| 35 </table> |
| 36 </template> |
| 37 <template if="{{ instance['error'] != null }}"> |
| 38 <error-view error_obj="{{ instance['error'] }}"></error-view> |
| 39 </template> |
| 40 </div> |
| 41 </div> |
| 42 </div> |
| 43 </div> |
| 44 </template> |
| 45 <script type="application/dart" src="instance_view.dart"></script> |
| 46 </polymer-element> |
| 47 t> |
| OLD | NEW |