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