OLD | NEW |
1 <head> | 1 <head> |
2 <link rel="import" href="observatory_element.html"> | 2 <link rel="import" href="observatory_element.html"> |
3 <link rel="import" href="error_view.html"> | 3 <link rel="import" href="error_view.html"> |
4 <link rel="import" href="field_ref.html"> | 4 <link rel="import" href="field_ref.html"> |
| 5 <link rel="import" href="function_ref.html"> |
5 <link rel="import" href="instance_ref.html"> | 6 <link rel="import" href="instance_ref.html"> |
| 7 <link rel="import" href="library_ref.html"> |
6 </head> | 8 </head> |
7 <polymer-element name="class-view" extends="observatory-element"> | 9 <polymer-element name="class-view" extends="observatory-element"> |
8 <template> | 10 <template> |
9 <div class="row"> | 11 <div class="row"> |
10 <div class="col-md-8 col-md-offset-2"> | 12 <div class="col-md-8 col-md-offset-2"> |
11 <div class="panel panel-warning"> | 13 <div class="panel panel-warning"> |
12 <div class="panel-heading"> | 14 <div class="panel-heading"> |
13 class <strong>{{ cls['user_name'] }}</strong> | 15 class <strong>{{ cls['user_name'] }}</strong> |
14 <template if="{{ cls['super']['type'] != 'Null' }}"> | 16 <template if="{{ cls['super']['type'] != 'Null' }}"> |
15 extends | 17 extends |
16 <a href="{{ app.locationManager.currentIsolateClassLink(cls['super']
['id'])}}"> | 18 <class-ref app="{{ app }}" ref="{{ cls['super'] }}"></class-ref> |
17 {{ cls['super']['user_name'] }} | |
18 </a> | |
19 </template> | 19 </template> |
20 <a class="pull-right" href="{{ app.locationManager.currentIsolateObjec
tLink(cls['library']['id'])}}"> | 20 <library-ref app="{{ app }}" ref="{{ cls['library'] }}"></library-ref> |
21 {{ cls['library']['name'] }} | |
22 </a> | |
23 </div> | 21 </div> |
24 <div class="panel-body"> | 22 <div class="panel-body"> |
25 <table class="table table-hover"> | 23 <table class="table table-hover"> |
26 <tbody> | 24 <tbody> |
27 <tr> | 25 <tr> |
28 <td>Abstract</td><td>{{ cls['abstract'] }}</td> | 26 <td>Abstract</td><td>{{ cls['abstract'] }}</td> |
29 </tr> | 27 </tr> |
30 <tr> | 28 <tr> |
31 <td>Const</td><td>{{ cls['const'] }}</td> | 29 <td>Const</td><td>{{ cls['const'] }}</td> |
32 </tr> | 30 </tr> |
33 <tr> | 31 <tr> |
34 <td>Finalized</td><td>{{ cls['const'] }}</td> | 32 <td>Finalized</td><td>{{ cls['const'] }}</td> |
35 </tr> | 33 </tr> |
36 <tr> | 34 <tr> |
37 <td>Implemented</td><td>{{ cls['implemented'] }}</td> | 35 <td>Implemented</td><td>{{ cls['implemented'] }}</td> |
38 </tr> | 36 </tr> |
39 <tr> | 37 <tr> |
40 <td>Patch</td><td>{{ cls['patch'] }}</td> | 38 <td>Patch</td><td>{{ cls['patch'] }}</td> |
41 </tr> | 39 </tr> |
42 <tr> | 40 <tr> |
43 <td>VM Name</td><td>{{ cls['name'] }}</td> | 41 <td>VM Name</td><td>{{ cls['name'] }}</td> |
44 </tr> | 42 </tr> |
45 </tbody> | 43 </tbody> |
46 </table> | 44 </table> |
47 <template if="{{ cls['error'] == null }}"> | 45 <template if="{{ cls['error'] == null }}"> |
48 <blockquote><strong>Fields</strong></blockquote> | 46 <blockquote><strong>Fields</strong></blockquote> |
49 <table class="table table-hover"> | 47 <table class="table table-hover"> |
50 <tbody> | 48 <tbody> |
51 <tr template repeat="{{ field in cls['fields'] }}"> | 49 <tr template repeat="{{ field in cls['fields'] }}"> |
52 <td><field-ref app="{{ app }}" field="{{ field }}"></field-ref
></td> | 50 <td><field-ref app="{{ app }}" ref="{{ field }}"></field-ref><
/td> |
53 <td><instance-ref app="{{ app }}" instance="{{ field['value']
}}"></instance-ref></td> | 51 <td><instance-ref app="{{ app }}" ref="{{ field['value'] }}"><
/instance-ref></td> |
54 </tr> | 52 </tr> |
55 </tbody> | 53 </tbody> |
56 </table> | 54 </table> |
57 <blockquote><strong>Functions</strong></blockquote> | 55 <blockquote><strong>Functions</strong></blockquote> |
58 <table class="table table-hover"> | 56 <table class="table table-hover"> |
59 <thead> | 57 <thead> |
60 <tr> | 58 <tr> |
61 <th>User Name</th> | 59 <th>User Name</th> |
62 <th>VM Name</th> | 60 <th>VM Name</th> |
63 </tr> | 61 </tr> |
64 </thead> | 62 </thead> |
65 <tbody> | 63 <tbody> |
66 <tr template repeat="{{ function in cls['functions'] }}"> | 64 <tr template repeat="{{ function in cls['functions'] }}"> |
67 <td><a href="{{ app.locationManager.currentIsolateObjectLink(f
unction['id'])}}">{{ function['user_name'] }}</a></td> | 65 <td><function-ref app="{{ app }}" ref="{{ function }}"></funct
ion-ref></td> |
68 <td><a href="{{ app.locationManager.currentIsolateObjectLink(f
unction['id'])}}">{{ function['name'] }}</a></td> | 66 <td><function-ref app="{{ app }}" ref="{{ function }}" interna
l></function-ref></td> |
69 </tr> | 67 </tr> |
70 </tbody> | 68 </tbody> |
71 </table> | 69 </table> |
72 </template> | 70 </template> |
73 <template if="{{ cls['error'] != null }}"> | 71 <template if="{{ cls['error'] != null }}"> |
74 <error-view error_obj="{{ cls['error'] }}"></error-view> | 72 <error-view error_obj="{{ cls['error'] }}"></error-view> |
75 </template> | 73 </template> |
76 </div> | 74 </div> |
77 </div> | 75 </div> |
78 </div> | 76 </div> |
79 </div> | 77 </div> |
80 </template> | 78 </template> |
81 <script type="application/dart" src="class_view.dart"></script> | 79 <script type="application/dart" src="class_view.dart"></script> |
82 </polymer-element> | 80 </polymer-element> |
OLD | NEW |