tracks/app/views/contexts/_context.html.erb
2014-08-14 21:05:05 -05:00

19 lines
736 B
Text

<%
@not_done = @not_done_todos.select {|t| t.context_id == context.id }
# invalidate the cache every day because of staleness or
# rendering of "due in x days" that change without touching updated at of the todo
cache [context, source_view_key, current_user.date.strftime("%Y%m%d"), @tag_name] do
-%>
<%=
render :partial => 'todos/collection',
:object => @not_done,
:locals => { :settings => {
:id => "c#{context.id}",
:collapsible => settings[:collapsible],
:container_name => 'context',
:title => show_context_name(context),
:show_empty_containers => settings[:show_empty_containers],
:parent_container_type => settings[:parent_container_type]
}}
%>
<% end %>