mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 19:20:13 +01:00
19 lines
736 B
Text
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 %>
|