OLD | NEW |
1 <head> | 1 <head> |
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 </head> | 5 </head> |
6 <polymer-element name="instance-ref" extends="service-ref"> | 6 <polymer-element name="instance-ref" extends="service-ref"> |
7 <template> | 7 <template> |
8 <style> | 8 <style> |
9 .memberList { | 9 .memberList { |
10 display: table; | 10 display: table; |
11 } | 11 } |
12 .memberItem { | 12 .memberItem { |
13 display: table-row; | 13 display: table-row; |
14 } | 14 } |
15 .memberName, .memberValue { | 15 .memberName, .memberValue { |
16 display: table-cell; | 16 display: table-cell; |
17 vertical-align: top; | 17 vertical-align: top; |
18 padding: 3px 0 3px 1em; | 18 padding: 3px 0 3px 1em; |
19 font: 400 14px 'Montserrat', sans-serif; | 19 font: 400 14px 'Montserrat', sans-serif; |
20 } | 20 } |
21 </style> | 21 </style> |
22 <div> | 22 <span> |
23 <template if="{{ isUnexpected(ref.serviceType) }}"> | 23 <template if="{{ isUnexpected(ref.serviceType) }}"> |
24 unexpected reference type <{{ ref.serviceType }}> | 24 unexpected reference type <{{ ref.serviceType }}> |
25 </template> | 25 </template> |
26 | 26 |
27 <template if="{{ isError(ref.serviceType) }}"> | 27 <template if="{{ isError(ref.serviceType) }}"> |
28 <pre>{{ ref.message }}</pre> | 28 <pre>{{ ref.message }}</pre> |
29 </template> | 29 </template> |
30 | 30 |
31 <template if="{{ isNull(ref.serviceType) }}"> | 31 <template if="{{ isNull(ref.serviceType) }}"> |
32 <div title="{{ hoverText }}">{{ ref['preview'] }}</div> | 32 <div title="{{ hoverText }}">{{ ref['preview'] }}</div> |
33 </template> | 33 </template> |
34 | 34 |
35 <template if="{{ (isString(ref.serviceType) || | 35 <template if="{{ (isString(ref.serviceType) || |
36 isBool(ref.serviceType) || | 36 isBool(ref.serviceType) || |
37 isInt(ref.serviceType)) || | 37 isInt(ref.serviceType)) || |
38 isDouble(ref.serviceType)) }}"> | 38 isDouble(ref.serviceType)) }}"> |
39 <a href="{{ url }}">{{ ref['preview'] }}</a> | 39 <a href="{{ url }}">{{ ref['preview'] }}</a> |
40 </template> | 40 </template> |
41 | 41 |
| 42 <template if="{{ (isType(ref.serviceType)) }}"> |
| 43 <a href="{{ url }}">{{ ref['user_name'] }}</a> |
| 44 </template> |
| 45 |
42 <template if="{{ isClosure(ref.serviceType) }}"> | 46 <template if="{{ isClosure(ref.serviceType) }}"> |
43 <a href="{{ url }}"> | 47 <a href="{{ url }}"> |
44 <!-- TODO(turnidge): Switch this to fully-qualified function --> | 48 <!-- TODO(turnidge): Switch this to fully-qualified function --> |
45 {{ ref['closureFunc']['user_name'] }} | 49 {{ ref['closureFunc']['user_name'] }} |
46 </a> | 50 </a> |
47 </template> | 51 </template> |
48 | 52 |
49 <template if="{{ isInstance(ref.serviceType) }}"> | 53 <template if="{{ isInstance(ref.serviceType) }}"> |
50 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> | 54 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> |
51 <curly-block callback="{{ expander() }}"> | 55 <curly-block callback="{{ expander() }}"> |
(...skipping 20 matching lines...) Expand all Loading... |
72 <div class="memberItem"> | 76 <div class="memberItem"> |
73 <div class="memberName">[{{ element['index']}}]</div> | 77 <div class="memberName">[{{ element['index']}}]</div> |
74 <div class="memberValue"> | 78 <div class="memberValue"> |
75 <instance-ref ref="{{ element['value'] }}"></instance-ref> | 79 <instance-ref ref="{{ element['value'] }}"></instance-ref> |
76 </div> | 80 </div> |
77 </div> | 81 </div> |
78 </template> | 82 </template> |
79 </div> | 83 </div> |
80 </curly-block> | 84 </curly-block> |
81 </template> | 85 </template> |
82 | 86 </span> |
83 </div> | |
84 </template> | 87 </template> |
85 <script type="application/dart" src="instance_ref.dart"></script> | 88 <script type="application/dart" src="instance_ref.dart"></script> |
86 </polymer-element> | 89 </polymer-element> |
OLD | NEW |