tracks/app/views/todos/done.html.erb
Reinier Balt 7605ec404f move will_paginate on all_todos pages to will_paginate-bootstrap gem to get the bootstrap
styling for free. Adds caching to todos/done page too
2013-07-29 12:25:13 +02:00

18 lines
No EOL
598 B
Text

<%# Template Dependency: todos/collection -%>
<% cache [@done_today.first, "done_today"] do -%>
<%= show_completed_todos_for("today", @done_today) %>
<% end -%>
<% cache [@done_rest_of_week.first, "done_rest_of_week"] do -%>
<%= show_completed_todos_for("rest_of_week", @done_rest_of_week) %>
<% end -%>
<% cache [@done_rest_of_month.first, "done_rest_of_month"] do -%>
<%= show_completed_todos_for("rest_of_month", @done_rest_of_month) %>
<% end -%>
<p>
<%= raw t('todos.see_all_completed',
:link => link_to(t("todos.all_completed_here"), determine_all_done_path))
%>
</p>