OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
4 for details. All rights reserved. Use of this source code is governed by a | 4 for details. All rights reserved. Use of this source code is governed by a |
5 BSD-style license that can be found in the LICENSE file. | 5 BSD-style license that can be found in the LICENSE file. |
6 --> | 6 --> |
7 <html lang="en"> | 7 <html lang="en"> |
8 <head> | 8 <head> |
9 <meta charset="utf-8"> | 9 <meta charset="utf-8"> |
10 <link rel="import" href="router_options.html"> | 10 <link rel="import" href="router_options.html"> |
(...skipping 12 matching lines...) Expand all Loading... |
23 </header> | 23 </header> |
24 <section id="main"> | 24 <section id="main"> |
25 <input id="toggle-all" type="checkbox" checked="{{app.allChecked}}"> | 25 <input id="toggle-all" type="checkbox" checked="{{app.allChecked}}"> |
26 <label for="toggle-all"></label> | 26 <label for="toggle-all"></label> |
27 <ul id="todo-list"> | 27 <ul id="todo-list"> |
28 <template repeat="{{app.visibleTodos}}"> | 28 <template repeat="{{app.visibleTodos}}"> |
29 <li is="todo-row" todo="{{}}"></li> | 29 <li is="todo-row" todo="{{}}"></li> |
30 </template> | 30 </template> |
31 </ul> | 31 </ul> |
32 </section> | 32 </section> |
33 <template bind if="{{app.hasTodos}}"> | 33 <template bind if="{{app.todos.length > 0}}"> |
34 <footer id="footer"> | 34 <footer id="footer"> |
35 <span id="todo-count"><strong>{{app.remaining}}</strong></span> | 35 <span id="todo-count"><strong>{{app.remaining}}</strong></span> |
36 <router-options id="filters"> | 36 <ul is="router-options" id="filters"> |
37 <li> <a href="#/">All</a> </li> | 37 <li> <a href="#/">All</a> </li> |
38 <li> <a href="#/active">Active</a> </li> | 38 <li> <a href="#/active">Active</a> </li> |
39 <li> <a href="#/completed">Completed</a> </li> | 39 <li> <a href="#/completed">Completed</a> </li> |
40 </router-options> | 40 </ul> |
41 <template bind if="{{app.hasCompleteTodos}}"> | 41 <template bind if="{{app.hasCompleteTodos}}"> |
42 <button id="clear-completed" on-click="clear"> | 42 <button id="clear-completed" on-click="clear"> |
43 Clear completed ({{app.doneCount}}) | 43 Clear completed ({{app.doneCount}}) |
44 </button> | 44 </button> |
45 </template> | 45 </template> |
46 </footer> | 46 </footer> |
47 </template> | 47 </template> |
48 </section> | 48 </section> |
49 <footer id="info"> | 49 <footer id="info"> |
50 <p>Double-click to edit a todo.</p> | 50 <p>Double-click to edit a todo.</p> |
51 <p>Credits: the <a href="http://www.dartlang.org">Dart</a> team.</p> | 51 <p>Credits: the <a href="http://www.dartlang.org">Dart</a> team.</p> |
52 <p> | 52 <p> |
53 Learn more about | 53 Learn more about |
54 <a href="https://www.dartlang.org/articles/dart-web-components/">Dart + We
b Components</a> | 54 <a href="https://www.dartlang.org/articles/dart-web-components/">Dart + We
b Components</a> |
55 or | 55 or |
56 <a href="https://github.com/dart-lang/web-ui/tree/master/example/todomvc">
view the source</a>. | 56 <a href="https://github.com/dart-lang/web-ui/tree/master/example/todomvc">
view the source</a>. |
57 </p> | 57 </p> |
58 <p>Part of <a href="http://todomvc.com">TodoMVC</a>.</p> | 58 <p>Part of <a href="http://todomvc.com">TodoMVC</a>.</p> |
59 </footer> | 59 </footer> |
60 </template> | 60 </template> |
61 <script type="application/dart" src="app.dart"></script> | 61 <script type="application/dart" src="app.dart"></script> |
62 </polymer-element> | 62 </polymer-element> |
63 </body> | 63 </body> |
64 </html> | 64 </html> |
OLD | NEW |