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 <link rel="stylesheet" href="packages/observatory/src/elements/css/shared.cs
s"> | 8 <link rel="stylesheet" href="packages/observatory/src/elements/css/shared.cs
s"> |
| 9 <style> |
| 10 .errorBox { |
| 11 background-color: #f5f5f5; |
| 12 border: 1px solid #ccc; |
| 13 padding: 10px; |
| 14 font-family: consolas, courier, monospace; |
| 15 font-size: 1em; |
| 16 line-height: 1.2em; |
| 17 white-space: pre; |
| 18 } |
| 19 </style> |
9 <span> | 20 <span> |
| 21 <template if="{{ isError(ref.serviceType) }}"> |
| 22 <pre class="errorBox">{{ ref.message }}</pre> |
| 23 </template> |
| 24 |
10 <template if="{{ isUnexpected(ref.serviceType) }}"> | 25 <template if="{{ isUnexpected(ref.serviceType) }}"> |
11 unexpected reference type <{{ ref.serviceType }}> | 26 unexpected reference type <{{ ref.serviceType }}> |
12 </template> | 27 </template> |
13 | 28 |
14 <template if="{{ isError(ref.serviceType) }}"> | |
15 <pre>{{ ref.message }}</pre> | |
16 </template> | |
17 | |
18 <template if="{{ isNull(ref.serviceType) }}"> | 29 <template if="{{ isNull(ref.serviceType) }}"> |
19 <div title="{{ hoverText }}">{{ ref['valueAsString'] }}</div> | 30 <div title="{{ hoverText }}">{{ ref['valueAsString'] }}</div> |
20 </template> | 31 </template> |
21 | 32 |
22 <template if="{{ (isString(ref.serviceType) || | 33 <template if="{{ (isString(ref.serviceType) || |
23 isBool(ref.serviceType) || | 34 isBool(ref.serviceType) || |
24 isInt(ref.serviceType)) || | 35 isInt(ref.serviceType)) || |
25 isDouble(ref.serviceType)) }}"> | 36 isDouble(ref.serviceType)) }}"> |
26 <a href="{{ url }}">{{ ref['valueAsString'] }}</a> | 37 <a href="{{ url }}">{{ ref['valueAsString'] }}</a> |
27 </template> | 38 </template> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 </div> | 80 </div> |
70 </div> | 81 </div> |
71 </template> | 82 </template> |
72 </div> | 83 </div> |
73 </curly-block> | 84 </curly-block> |
74 </template> | 85 </template> |
75 </span> | 86 </span> |
76 </template> | 87 </template> |
77 <script type="application/dart" src="instance_ref.dart"></script> | 88 <script type="application/dart" src="instance_ref.dart"></script> |
78 </polymer-element> | 89 </polymer-element> |
OLD | NEW |