collab/app/views/tasks/_task_list.html.erb
2010-03-05 01:48:00 -05:00

24 lines
767 B
Plaintext

<% unless @tasks.empty? %>
<table class='task_list'>
<tr>
<th>Name</th>
<th>Project</th>
<th>Description</th>
<th>Children</th>
</tr>
<% @tasks.each do |task| %>
<tr class="<%= cycle(:even, :odd)%>">
<td><%=h task.name %></td>
<td><%= link_to h(task.project.name), project_path(task.project) %></td>
<td><%=h task.description %></td>
<td><%=h task.tasks.size %></td>
<td><%= link_to 'Show', project_task_path(@project, task) %></td>
<td><%= link_to 'Edit', edit_project_task_path(@project, task) %></td>
<td><%= link_to 'Destroy', project_task_path(@project, task), :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<% else %>
<p> No Dependet Tasks </p>
<% end %>