OLD | NEW |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
2 <link rel="import" href="curly_block.html"> | 2 <link rel="import" href="curly_block.html"> |
3 <link rel="import" href="observatory_element.html"> | 3 <link rel="import" href="observatory_element.html"> |
4 <link rel="import" href="service_ref.html"> | 4 <link rel="import" href="service_ref.html"> |
5 | 5 |
6 <polymer-element name="instance-ref" extends="service-ref"> | 6 <polymer-element name="instance-ref" extends="service-ref"> |
7 <template> | 7 <template> |
8 <link rel="stylesheet" href="css/shared.css"> | 8 <link rel="stylesheet" href="css/shared.css"> |
9 <style> | 9 <style> |
10 .errorBox { | 10 .errorBox { |
(...skipping 24 matching lines...) Expand all Loading... |
35 <template if="{{ ref.isAbstractType }}"> | 35 <template if="{{ ref.isAbstractType }}"> |
36 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref.name }}</a> | 36 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref.name }}</a> |
37 </template> | 37 </template> |
38 | 38 |
39 <template if="{{ ref.isClosure }}"> | 39 <template if="{{ ref.isClosure }}"> |
40 <a on-click="{{ goto }}" _href="{{ url }}"> | 40 <a on-click="{{ goto }}" _href="{{ url }}"> |
41 {{ ref.function.qualifiedName }} | 41 {{ ref.function.qualifiedName }} |
42 </a> | 42 </a> |
43 </template> | 43 </template> |
44 | 44 |
45 <template if="{{ ref.isPlainInstance }}"> | 45 <!-- TODO(rmacnak): Specialized view for maps. --> |
| 46 <template if="{{ ref.isPlainInstance || ref.isMap }}"> |
46 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em>
</a> | 47 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em>
</a> |
47 <curly-block callback="{{ expander() }}"> | 48 <curly-block callback="{{ expander() }}"> |
48 <div class="memberList"> | 49 <div class="memberList"> |
49 <template repeat="{{ field in ref.fields }}"> | 50 <template repeat="{{ field in ref.fields }}"> |
50 <div class="memberItem"> | 51 <div class="memberItem"> |
51 <div class="memberName"> | 52 <div class="memberName"> |
52 {{ field['decl'].name }} | 53 {{ field['decl'].name }} |
53 </div> | 54 </div> |
54 <div class="memberValue"> | 55 <div class="memberValue"> |
55 <any-service-ref ref="{{ field['value'] }}"></any-service-ref> | 56 <any-service-ref ref="{{ field['value'] }}"></any-service-ref> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 </div> | 108 </div> |
108 </div> | 109 </div> |
109 </div> | 110 </div> |
110 </curly-block> | 111 </curly-block> |
111 </template> | 112 </template> |
112 </span> | 113 </span> |
113 </template> | 114 </template> |
114 </polymer-element> | 115 </polymer-element> |
115 | 116 |
116 <script type="application/dart" src="instance_ref.dart"></script> | 117 <script type="application/dart" src="instance_ref.dart"></script> |
OLD | NEW |