collab/app/views/tasks/_task_list.html.erb

26 lines
862 B
Plaintext

<% unless @tasks.empty? %>
<table class='task_list' cellspacing='0' cellpadding='0'>
<tr>
<th>Name</th>
<th>Project</th>
<th>Description</th>
<th>Children</th>
<th>&nbsp;</th>
</tr>
<% @tasks.each do |task| %>
<tr class="<%= cycle(:even, :odd)%>">
<td><%= link_to h(task.name), project_task_path(@project, task) %></td>
<td><%= link_to h(task.project.name), project_path(task.project) %></td>
<td><%=h truncate(task.description, :length => 158) %></td>
<td><%= link_to h(task.tasks.size), project_task_path(@project, task) %></td>
<td>
<%= link_to 'Edit', edit_project_task_path(@project, task) %>
<%= 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 %>