OLD | NEW |
1 <head> | 1 <head> |
2 <link rel="import" href="instance_ref.html"> | 2 <link rel="import" href="instance_ref.html"> |
3 </head> | 3 </head> |
4 <polymer-element name="eval-link"> | 4 <polymer-element name="eval-link"> |
5 <template> | 5 <template> |
6 <style> | 6 <style> |
7 .idle { | 7 .idle { |
8 color: #0489c3; | 8 color: #0489c3; |
9 cursor: pointer; | 9 cursor: pointer; |
10 } | 10 } |
11 .busy { | 11 .busy { |
12 color: #aaa; | 12 color: #aaa; |
13 cursor: wait; | 13 cursor: wait; |
14 } | 14 } |
15 </style> | 15 </style> |
16 | 16 |
17 <template if="{{ busy }}"> | 17 <template if="{{ busy }}"> |
18 <span class="busy">[evaluate]</span> | 18 <span class="busy">{{ label }}</span> |
19 </template> | 19 </template> |
20 <template if="{{ !busy }}"> | 20 <template if="{{ !busy }}"> |
21 <span class="idle"><a on-click="{{ evalNow }}">[evaluate]</a></span> | 21 <span class="idle"><a on-click="{{ evalNow }}">{{ label }}</a></span> |
22 </template> | 22 </template> |
23 <template if="{{ result != null }}"> | 23 <template if="{{ result != null }}"> |
24 = <instance-ref ref="{{ result }}"></instance-ref> | 24 = <instance-ref ref="{{ result }}"></instance-ref> |
25 </template> | 25 </template> |
26 | 26 |
27 </template> | 27 </template> |
28 <script type="application/dart" src="eval_link.dart"></script> | 28 <script type="application/dart" src="eval_link.dart"></script> |
29 </polymer-element> | 29 </polymer-element> |
OLD | NEW |