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