| 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 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 </template> | 38 </template> |
| 39 | 39 |
| 40 <template if="{{ (isType(ref.serviceType)) }}"> | 40 <template if="{{ (isType(ref.serviceType)) }}"> |
| 41 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['user_name'] }}</a> | 41 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['user_name'] }}</a> |
| 42 </template> | 42 </template> |
| 43 | 43 |
| 44 <template if="{{ isInstance(ref.serviceType) && | 44 <template if="{{ isInstance(ref.serviceType) && |
| 45 ref['closureFunc'] != null}}"> | 45 ref['closureFunc'] != null}}"> |
| 46 <a on-click="{{ goto }}" href="{{ url }}"> | 46 <a on-click="{{ goto }}" href="{{ url }}"> |
| 47 <!-- TODO(turnidge): Switch this to fully-qualified function --> | 47 <!-- TODO(turnidge): Switch this to fully-qualified function --> |
| 48 {{ ref['closureFunc']['user_name'] }} | 48 {{ ref['closureFunc'].name }} |
| 49 </a> | 49 </a> |
| 50 </template> | 50 </template> |
| 51 | 51 |
| 52 <template if="{{ isInstance(ref.serviceType) && | 52 <template if="{{ isInstance(ref.serviceType) && |
| 53 ref['closureFunc'] == null}}"> | 53 ref['closureFunc'] == null}}"> |
| 54 <a on-click="{{ goto }}" href="{{ url }}"><em>{{ ref['class'].name }}</e
m></a> | 54 <a on-click="{{ goto }}" href="{{ url }}"><em>{{ ref['class'].name }}</e
m></a> |
| 55 <curly-block callback="{{ expander() }}"> | 55 <curly-block callback="{{ expander() }}"> |
| 56 <div class="memberList"> | 56 <div class="memberList"> |
| 57 <template repeat="{{ field in ref['fields'] }}"> | 57 <template repeat="{{ field in ref['fields'] }}"> |
| 58 <div class="memberItem"> | 58 <div class="memberItem"> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 81 </div> | 81 </div> |
| 82 </template> | 82 </template> |
| 83 </div> | 83 </div> |
| 84 </curly-block> | 84 </curly-block> |
| 85 </template> | 85 </template> |
| 86 </span> | 86 </span> |
| 87 </template> | 87 </template> |
| 88 </polymer-element> | 88 </polymer-element> |
| 89 | 89 |
| 90 <script type="application/dart" src="instance_ref.dart"></script> | 90 <script type="application/dart" src="instance_ref.dart"></script> |
| OLD | NEW |