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="observatory_element.html"> | 2 |
3 <link rel="import" href="service_ref.html"> | 3 <link rel="import" href="service_ref.html"> |
4 | 4 |
5 <polymer-element name="class-ref" extends="service-ref"> | 5 <polymer-element name="class-ref"> |
6 <template> | 6 <template> |
7 <link rel="stylesheet" href="css/shared.css"> | 7 <link rel="stylesheet" href="css/shared.css"> |
8 <style> | 8 <style> |
9 .indented { | 9 .indented { |
10 margin-left: 1.5em; | 10 margin-left: 1.5em; |
11 font: 400 14px 'Montserrat', sans-serif; | 11 font: 400 14px 'Montserrat', sans-serif; |
12 line-height: 150%; | 12 line-height: 150%; |
13 } | 13 } |
14 </style><!-- | 14 </style><!-- |
15 --><a on-click="{{ goto }}" _href="{{ url }}">{{ ref.name }}</a><!-- | 15 --><a on-click="{{ goto }}" _href="{{ url }}">{{ ref.name }}</a><!-- |
16 --><template if="{{ asValue }}"> | 16 --><template if="{{ asValue }}"> |
17 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> | 17 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> |
18 <div class="indented"> | 18 <div class="indented"> |
19 <template repeat="{{ field in ref.fields }}"> | 19 <template repeat="{{ field in ref.fields }}"> |
20 <template if="{{ field.isStatic }}"> | 20 <template if="{{ field.isStatic }}"> |
21 {{ field.name }} : | 21 {{ field.name }} : |
22 <any-service-ref ref="{{ field.staticValue }}" | 22 <any-service-ref ref="{{ field.staticValue }}" |
23 expandKey="{{ makeExpandKey(field.name) }}"> | 23 expandKey="{{ makeExpandKey(field.name) }}"> |
24 </any-service-ref><br> | 24 </any-service-ref><br> |
25 </template> | 25 </template> |
26 </template> | 26 </template> |
27 </div> | 27 </div> |
28 </curly-block> | 28 </curly-block> |
29 </template><!-- | 29 </template><!-- |
30 --></template> | 30 --></template> |
31 </polymer-element> | 31 </polymer-element> |
32 | 32 |
33 <script type="application/dart" src="class_ref.dart"></script> | 33 <script type="application/dart" src="class_ref.dart"></script> |
OLD | NEW |