| OLD | NEW |
| (Empty) | |
| 1 <polymer-element name="curly-block"> |
| 2 <template> |
| 3 <style> |
| 4 .idle { |
| 5 display: inline-block; |
| 6 color: #0489c3; |
| 7 cursor: pointer; |
| 8 } |
| 9 .busy { |
| 10 display: inline-block; |
| 11 color: white; |
| 12 cursor: wait; |
| 13 } |
| 14 </style> |
| 15 <template if="{{ expanded }}"> |
| 16 <template if="{{ busy }}"> |
| 17 {<div class="busy"> ⊟ </div> |
| 18 <br> |
| 19 <content></content> |
| 20 } |
| 21 </template> |
| 22 <template if="{{ !busy }}"> |
| 23 {<a on-click="{{ toggleExpand }}"><div class="idle"> ⊟&
nbsp; </div></a> |
| 24 <br> |
| 25 <content></content> |
| 26 } |
| 27 </template> |
| 28 </template> |
| 29 |
| 30 <template if="{{ !expanded }}"> |
| 31 <template if="{{ busy }}"> |
| 32 {<div class="busy"> ⊞ </div>} |
| 33 </template> |
| 34 <template if="{{ !busy }}"> |
| 35 {<a on-click="{{ toggleExpand }}"><div class="idle"> ⊞&
nbsp; </div></a>} |
| 36 </template> |
| 37 </template> |
| 38 </template> |
| 39 <script type="application/dart" src="curly_block.dart"></script> |
| 40 </polymer-element> |
| OLD | NEW |