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="error-ref" extends="service-ref"> | 6 <polymer-element name="error-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 <pre class="errorBox">{{ ref.kind }}: {{ ref.message }}</pre> | 21 <pre class="errorBox">{{ ref.kind }}: {{ ref.message }}</pre> |
22 </span> | 22 </span> |
23 </template> | 23 </template> |
24 </polymer-element> | 24 </polymer-element> |
25 | 25 |
26 <script type="application/dart" src="error_ref.dart"></script> | 26 <script type="application/dart" src="error_ref.dart"></script> |
OLD | NEW |