| 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 .member { | 9 .member { |
| 10 vertical-align: top; | 10 vertical-align: top; |
| 11 padding: 0 0 0 1em; | 11 padding: 0 0 0 1em; |
| 12 } | 12 } |
| 13 </style> | 13 </style> |
| 14 <div> | 14 <div> |
| 15 <template if="{{ isUnexpectedRef(ref['type']) }}"> | 15 <template if="{{ isUnexpected(ref.serviceType) }}"> |
| 16 unexpected reference type <{{ ref['type'] }}> | 16 unexpected reference type <{{ ref['type'] }}> |
| 17 </template> | 17 </template> |
| 18 | 18 |
| 19 <template if="{{ isNullRef(ref['type']) }}"> | 19 <template if="{{ isNull(ref.serviceType) }}"> |
| 20 <div title="{{ hoverText }}">{{ name }}</div> | 20 <div title="{{ hoverText }}">{{ ref['preview'] }}</div> |
| 21 </template> | 21 </template> |
| 22 | 22 |
| 23 <template if="{{ (isStringRef(ref['type']) || | 23 <template if="{{ (isString(ref.serviceType) || |
| 24 isBoolRef(ref['type']) || | 24 isBool(ref.serviceType) || |
| 25 isIntRef(ref['type'])) }}"> | 25 isInt(ref.serviceType)) }}"> |
| 26 <a href="{{ url }}">{{ name }}</a> | 26 <a href="{{ url }}">{{ ref['preview'] }}</a> |
| 27 </template> | 27 </template> |
| 28 | 28 |
| 29 <template if="{{ isClosureRef(ref['type']) }}"> | 29 <template if="{{ isClosure(ref.serviceType) }}"> |
| 30 <a href="{{ url }}"> | 30 <a href="{{ url }}"> |
| 31 {{ ref['closureFunc']['user_name'] }} | 31 {{ ref['closureFunc']['user_name'] }} |
| 32 </a> | 32 </a> |
| 33 </template> | 33 </template> |
| 34 | 34 |
| 35 <template if="{{ isInstanceRef(ref['type']) }}"> | 35 <template if="{{ isInstance(ref.serviceType) }}"> |
| 36 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> | 36 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> |
| 37 <curly-block callback="{{ expander() }}"> | 37 <curly-block callback="{{ expander() }}"> |
| 38 <table> | 38 <table> |
| 39 <tr template repeat="{{ field in ref['fields'] }}"> | 39 <tr template repeat="{{ field in ref['fields'] }}"> |
| 40 <td class="member">{{ field['decl']['user_name'] }}</td> | 40 <td class="member">{{ field['decl']['user_name'] }}</td> |
| 41 <td class="member"> | 41 <td class="member"> |
| 42 <instance-ref isolate="{{ isolate }}" ref="{{ field['value'] }}"
></instance-ref> | 42 <instance-ref ref="{{ field['value'] }}"></instance-ref> |
| 43 </td> | 43 </td> |
| 44 </tr> | 44 </tr> |
| 45 </table> | 45 </table> |
| 46 </curly-block> | 46 </curly-block> |
| 47 </template> | 47 </template> |
| 48 | 48 |
| 49 <template if="{{ isListRef(ref['type']) }}"> | 49 <template if="{{ isList(ref.serviceType) }}"> |
| 50 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em> ({{ ref['le
ngth']}})</a> | 50 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em> ({{ ref['le
ngth']}})</a> |
| 51 <curly-block callback="{{ expander() }}"> | 51 <curly-block callback="{{ expander() }}"> |
| 52 <table> | 52 <table> |
| 53 <tr template repeat="{{ element in ref['elements'] }}"> | 53 <tr template repeat="{{ element in ref['elements'] }}"> |
| 54 <td class="member">[{{ element['index']}}]</td> | 54 <td class="member">[{{ element['index']}}]</td> |
| 55 <td class="member"> | 55 <td class="member"> |
| 56 <instance-ref isolate="{{ isolate }}" ref="{{ element['value'] }
}"></instance-ref> | 56 <instance-ref ref="{{ element['value'] }}"></instance-ref> |
| 57 </td> | 57 </td> |
| 58 </tr> | 58 </tr> |
| 59 </table> | 59 </table> |
| 60 </curly-block> | 60 </curly-block> |
| 61 </template> | 61 </template> |
| 62 | 62 |
| 63 </div> | 63 </div> |
| 64 </template> | 64 </template> |
| 65 <script type="application/dart" src="instance_ref.dart"></script> | 65 <script type="application/dart" src="instance_ref.dart"></script> |
| 66 </polymer-element> | 66 </polymer-element> |
| OLD | NEW |