Sha256: b9dc7bba31c1bc37f34543d1f3a67766d4daa03183ba6b0146ac8bab720d7b50

Contents?: true

Size: 676 Bytes

Versions: 5

Compression:

Stored size: 676 Bytes

Contents

<footer id="footer">
  <span id="todo-count"><strong><%= Todo.active.count %></strong> <%= "item".pluralize(Todo.active.count) %> left</span>

  <ul id="filters">
    <li>
      <%= link_to "All", todos_path, class: "all" %>
    </li>
    <li>
      <%= link_to "Active", active_todos_path, class: "active" %>
    </li>
    <li>
      <%= link_to "Completed", completed_todos_path, class: "completed" %>
    </li>
  </ul>

  <% if Todo.completed.count > 0 %>
  <%= form_tag(destroy_completed_todos_path, method: :delete, remote: true) do %>
    <button id="clear-completed" type="submit">Clear completed (<%= Todo.completed.count %>)</button>
  <% end %>
  <% end %>
</footer>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
half-pipe-0.3.0.beta.2 examples/todomvc-rails/app/views/todos/_footer.html.erb
half-pipe-0.3.0.beta.1 examples/todomvc-rails/app/views/todos/_footer.html.erb
half-pipe-0.3.0.alpha.5 examples/todomvc-rails/app/views/todos/_footer.html.erb
half-pipe-0.3.0.alpha.4 examples/todomvc-rails/app/views/todos/_footer.html.erb
half-pipe-0.3.0.alpha.3 examples/todomvc-rails/app/views/todos/_footer.html.erb