tracks/app/views/projects/_project.html.erb

22 lines
825 B
Text
Raw Normal View History

2012-09-19 17:13:29 +02:00
<%
@not_done = @not_done_todos.select {|t| t.project_id == project.id }
2012-09-19 17:13:29 +02:00
# invalidate the cache every day because of staleness or
# rendering of "due in x days" that change without touching updated at of the todo
2014-08-14 21:05:05 -05:00
cache [project, source_view_key, current_user.date.strftime("%Y%m%d"), @tag_name] do
-%>
2014-08-14 21:05:05 -05:00
<%=
title = source_view_is(:project) ? t('projects.actions_in_project_title') : show_project_name(project)
2014-08-14 21:05:05 -05:00
render(:partial => 'todos/collection',
:object => @not_done,
:locals => { :settings => {
2014-08-14 21:05:05 -05:00
:id => "p#{project.id}",
:collapsible => settings[:collapsible],
:title => title,
:container_name => 'project',
:show_empty_containers => settings[:show_empty_containers],
:parent_container_type => settings[:parent_container_type]
}})
%>
2014-08-14 21:05:05 -05:00
<% end -%>