| 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 { |
| 11 background-color: #f5f5f5; | 11 background-color: #f5f5f5; |
| 12 border: 1px solid #ccc; | 12 border: 1px solid #ccc; |
| 13 padding: 10px; | 13 padding: 10px; |
| 14 font-family: consolas, courier, monospace; | 14 font-family: consolas, courier, monospace; |
| 15 font-size: 1em; | 15 font-size: 1em; |
| 16 line-height: 1.2em; | 16 line-height: 1.2em; |
| 17 white-space: pre; | 17 white-space: pre; |
| 18 } | 18 } |
| 19 </style> | 19 </style> |
| 20 <span> | 20 <span> |
| 21 <template if="{{ isError(ref) }}"> | 21 <template if="{{ isError(ref) }}"> |
| 22 <pre class="errorBox">{{ ref.message }}</pre> | 22 <pre class="errorBox">{{ ref.message }}</pre> |
| 23 </template> | 23 </template> |
| 24 | 24 |
| 25 <template if="{{ isUnexpected(ref) }}"> | 25 <template if="{{ isUnexpected(ref) }}"> |
| 26 unexpected reference type <{{ ref.serviceType }}> | 26 unexpected reference type <{{ ref.serviceType }}> |
| 27 </template> | 27 </template> |
| 28 | 28 |
| 29 <template if="{{ isPsuedoNull(ref) }}"> | 29 <template if="{{ isSentinel(ref) }}"> |
| 30 <div title="{{ hoverText }}">{{ ref['valueAsString'] }}</div> | 30 <div title="{{ hoverText }}">{{ ref['valueAsString'] }}</div> |
| 31 </template> | 31 </template> |
| 32 | 32 |
| 33 <template if="{{ (isString(ref) || | 33 <template if="{{ (isString(ref) || |
| 34 isBool(ref) || | 34 isBool(ref) || |
| 35 isNull(ref) || | 35 isNull(ref) || |
| 36 isInt(ref)) || | 36 isInt(ref)) || |
| 37 isDouble(ref)) }}"> | 37 isDouble(ref)) }}"> |
| 38 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['valueAsString'] }}</a> | 38 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['valueAsString'] }}</a> |
| 39 </template> | 39 </template> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 </div> | 82 </div> |
| 83 </template> | 83 </template> |
| 84 </div> | 84 </div> |
| 85 </curly-block> | 85 </curly-block> |
| 86 </template> | 86 </template> |
| 87 </span> | 87 </span> |
| 88 </template> | 88 </template> |
| 89 </polymer-element> | 89 </polymer-element> |
| 90 | 90 |
| 91 <script type="application/dart" src="instance_ref.dart"></script> | 91 <script type="application/dart" src="instance_ref.dart"></script> |
| OLD | NEW |