Commit c92f6987 authored by Pascal Hartig's avatar Pascal Hartig

CanJS: Consistency fix for clear button

parent 3cd9430f
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
<li><a href="#!completed">Completed</a></li> <li><a href="#!completed">Completed</a></li>
</ul> </ul>
<button id="clear-completed" class="<%= todos.completed() === 0 ? 'hidden' : '' %>"> <button id="clear-completed" class="<%= todos.completed() === 0 ? 'hidden' : '' %>">
Clear <%= todos.completed() %> Clear completed (<%= todos.completed() %>)
completed item<%= todos.completed() == 1 ? "" : "s" %>
</button> </button>
</footer> </footer>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<a href="#!completed">Completed</a> <a href="#!completed">Completed</a>
</li> </li>
</ul> </ul>
<a href="#!" id="clear-completed" class="{{^todos.completed}}hidden{{/todos.completed}}"> <button id="clear-completed" class="{{^todos.completed}}hidden{{/todos.completed}}">
Clear {{todos.completed}} completed {{plural "item" todos.completed}} Clear completed ({{todos.completed}})
</a> </button>
</footer> </footer>
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
<li><a href="#!completed">Completed</a></li> <li><a href="#!completed">Completed</a></li>
</ul> </ul>
<button id="clear-completed" class="<%= todos.completed() === 0 ? 'hidden' : '' %>"> <button id="clear-completed" class="<%= todos.completed() === 0 ? 'hidden' : '' %>">
Clear <%= todos.completed() %> Clear completed (<%= todos.completed() %>)
completed item<%= todos.completed() == 1 ? "" : "s" %>
</button> </button>
</footer> </footer>
...@@ -30,6 +30,6 @@ ...@@ -30,6 +30,6 @@
<li><a href="#!completed">Completed</a></li> <li><a href="#!completed">Completed</a></li>
</ul> </ul>
<button id="clear-completed" class="{{^todos.completed}}hidden{{/todos.completed}}"> <button id="clear-completed" class="{{^todos.completed}}hidden{{/todos.completed}}">
Clear {{todos.completed}} completed {{plural "item" todos.completed}} Clear completed ({{todos.completed}})
</button> </button>
</footer> </footer>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment