| 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 <style> | 8 <style> |
| 9 .memberList { | 9 .memberList { |
| 10 display: table; | 10 display: table; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 isBool(ref.serviceType) || | 36 isBool(ref.serviceType) || |
| 37 isInt(ref.serviceType)) || | 37 isInt(ref.serviceType)) || |
| 38 isDouble(ref.serviceType)) }}"> | 38 isDouble(ref.serviceType)) }}"> |
| 39 <a href="{{ url }}">{{ ref['preview'] }}</a> | 39 <a href="{{ url }}">{{ ref['preview'] }}</a> |
| 40 </template> | 40 </template> |
| 41 | 41 |
| 42 <template if="{{ (isType(ref.serviceType)) }}"> | 42 <template if="{{ (isType(ref.serviceType)) }}"> |
| 43 <a href="{{ url }}">{{ ref['user_name'] }}</a> | 43 <a href="{{ url }}">{{ ref['user_name'] }}</a> |
| 44 </template> | 44 </template> |
| 45 | 45 |
| 46 <template if="{{ isClosure(ref.serviceType) }}"> | 46 <template if="{{ isInstance(ref.serviceType) && |
| 47 ref['closureFunc'] != null}}"> |
| 47 <a href="{{ url }}"> | 48 <a href="{{ url }}"> |
| 48 <!-- TODO(turnidge): Switch this to fully-qualified function --> | 49 <!-- TODO(turnidge): Switch this to fully-qualified function --> |
| 49 {{ ref['closureFunc']['user_name'] }} | 50 {{ ref['closureFunc']['user_name'] }} |
| 50 </a> | 51 </a> |
| 51 </template> | 52 </template> |
| 52 | 53 |
| 53 <template if="{{ isInstance(ref.serviceType) }}"> | 54 <template if="{{ isInstance(ref.serviceType) && |
| 55 ref['closureFunc'] == null}}"> |
| 54 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> | 56 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> |
| 55 <curly-block callback="{{ expander() }}"> | 57 <curly-block callback="{{ expander() }}"> |
| 56 <div class="memberList"> | 58 <div class="memberList"> |
| 57 <template repeat="{{ field in ref['fields'] }}"> | 59 <template repeat="{{ field in ref['fields'] }}"> |
| 58 <div class="memberItem"> | 60 <div class="memberItem"> |
| 59 <div class="memberName"> | 61 <div class="memberName"> |
| 60 {{ field['decl']['user_name'] }} | 62 {{ field['decl']['user_name'] }} |
| 61 </div> | 63 </div> |
| 62 <div class="memberValue"> | 64 <div class="memberValue"> |
| 63 <instance-ref ref="{{ field['value'] }}"></instance-ref> | 65 <instance-ref ref="{{ field['value'] }}"></instance-ref> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 80 </div> | 82 </div> |
| 81 </div> | 83 </div> |
| 82 </template> | 84 </template> |
| 83 </div> | 85 </div> |
| 84 </curly-block> | 86 </curly-block> |
| 85 </template> | 87 </template> |
| 86 </span> | 88 </span> |
| 87 </template> | 89 </template> |
| 88 <script type="application/dart" src="instance_ref.dart"></script> | 90 <script type="application/dart" src="instance_ref.dart"></script> |
| 89 </polymer-element> | 91 </polymer-element> |
| OLD | NEW |