Commit c92f6987 authored by Pascal Hartig's avatar Pascal Hartig

CanJS: Consistency fix for clear button

parent 3cd9430f
......@@ -34,7 +34,6 @@
<li><a href="#!completed">Completed</a></li>
</ul>
<button id="clear-completed" class="<%= todos.completed() === 0 ? 'hidden' : '' %>">
Clear <%= todos.completed() %>
completed item<%= todos.completed() == 1 ? "" : "s" %>
Clear completed (<%= todos.completed() %>)
</button>
</footer>
......@@ -35,7 +35,7 @@
<a href="#!completed">Completed</a>
</li>
</ul>
<a href="#!" id="clear-completed" class="{{^todos.completed}}hidden{{/todos.completed}}">
Clear {{todos.completed}} completed {{plural "item" todos.completed}}
</a>
<button id="clear-completed" class="{{^todos.completed}}hidden{{/todos.completed}}">
Clear completed ({{todos.completed}})
</button>
</footer>
......@@ -31,7 +31,6 @@
<li><a href="#!completed">Completed</a></li>
</ul>
<button id="clear-completed" class="<%= todos.completed() === 0 ? 'hidden' : '' %>">
Clear <%= todos.completed() %>
completed item<%= todos.completed() == 1 ? "" : "s" %>
Clear completed (<%= todos.completed() %>)
</button>
</footer>
......@@ -30,6 +30,6 @@
<li><a href="#!completed">Completed</a></li>
</ul>
<button id="clear-completed" class="{{^todos.completed}}hidden{{/todos.completed}}">
Clear {{todos.completed}} completed {{plural "item" todos.completed}}
Clear completed ({{todos.completed}})
</button>
</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