mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 11:10:12 +01:00
Todo unchecking is still buggy, but needs a bunch more work to make it happen. Also added some useful globals to the standard layout for later access by application.js.
21 lines
875 B
Text
21 lines
875 B
Text
<div class="container">
|
|
<h2>
|
|
<% if collapsible -%>
|
|
<a href="#" class="container_toggle" id="toggle_p<%= project.id %>"><%= image_tag("collapse.png") %></a>
|
|
<% end -%>
|
|
<%= project.name -%>
|
|
</h2>
|
|
<div id="<%= dom_id(project, "container")%>">
|
|
<%= render :partial => "projects/project_settings", :locals => { :project => project, :collapsible => collapsible } %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<h2>Actions in this project</h2>
|
|
<div id="p<%= project.id %>items" class="items toggle_target">
|
|
<div id="p<%= project.id %>empty-nd" style="display:<%= @not_done.empty? ? 'block' : 'none'%>;">
|
|
<div class="message"><p>Currently there are no incomplete actions in this project</p></div>
|
|
</div>
|
|
<%= render :partial => "todos/todo", :collection => @not_done, :locals => { :parent_container_type => "project" } %>
|
|
</div>
|
|
</div>
|