2008-04-19 19:15:07 +00:00
|
|
|
<% project = @project %>
|
|
|
|
|
<%= project_next_prev_mobile %>
|
|
|
|
|
<h2><%=project.name%></h2>
|
2013-09-13 15:40:09 +03:00
|
|
|
<% if @project.description.present? -%>
|
2008-04-19 19:15:07 +00:00
|
|
|
<div class="project_description"><%= sanitize(@project.description) %></div>
|
|
|
|
|
<% end -%>
|
2011-07-18 17:37:11 -05:00
|
|
|
<ul class="c">
|
2013-03-17 15:41:36 +01:00
|
|
|
<%= render :partial => @not_done_todos, :locals => { :parent_container_type => "project" }%>
|
2011-11-22 09:42:21 -06:00
|
|
|
</ul>
|
2010-10-31 21:27:13 +08:00
|
|
|
<h2><%= t('projects.deferred_actions')%></h2>
|
2013-03-17 15:41:36 +01:00
|
|
|
<% if @deferred_todos.empty? -%>
|
2010-10-31 21:27:13 +08:00
|
|
|
<%= t('projects.deferred_actions_empty') %>
|
2008-04-19 19:15:07 +00:00
|
|
|
<% else -%>
|
2011-11-22 09:42:21 -06:00
|
|
|
<ul class="c">
|
2013-03-17 15:41:36 +01:00
|
|
|
<%= render :partial => @deferred_todos, :locals => { :parent_container_type => "project" }%>
|
2012-05-12 13:37:36 +02:00
|
|
|
</ul><% end
|
2008-04-19 19:15:07 +00:00
|
|
|
-%>
|
2010-10-31 21:27:13 +08:00
|
|
|
<h2><%= t('projects.completed_actions')%></h2>
|
2008-04-19 19:15:07 +00:00
|
|
|
<% if @done.empty? -%>
|
2010-10-31 21:27:13 +08:00
|
|
|
<%= t('projects.completed_actions_empty') %>
|
2008-04-19 19:15:07 +00:00
|
|
|
<% else -%>
|
2011-11-22 09:42:21 -06:00
|
|
|
<ul class="c">
|
2012-05-12 13:37:36 +02:00
|
|
|
<%= render :partial => @done, :locals => { :parent_container_type => "project" }%>
|
2011-11-22 09:42:21 -06:00
|
|
|
</ul><% end %>
|
2010-10-31 21:27:13 +08:00
|
|
|
<h2><%= t('projects.notes') %></h2>
|
2008-04-19 19:15:07 +00:00
|
|
|
<% if @project.notes.empty? -%>
|
2010-10-31 21:27:13 +08:00
|
|
|
<%= t('projects.notes_empty') %>
|
2012-05-12 13:37:36 +02:00
|
|
|
<% else -%><%= render :partial => "notes/notes_summary", :collection => @project.notes %>
|
2008-04-19 19:15:07 +00:00
|
|
|
<% end -%>
|
2010-10-31 21:27:13 +08:00
|
|
|
<h2><%= t('projects.settings') %></h2>
|
2013-12-30 20:52:35 +01:00
|
|
|
<%= t('projects.state', :state => project.aasm.current_state.to_s) %>. <%= @project_default_context %>
|