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

26 lines
862 B
Plaintext
Raw Normal View History

2010-03-04 22:42:09 +00:00
<% unless @tasks.empty? %>
2010-03-15 15:47:32 +00:00
<table class='task_list' cellspacing='0' cellpadding='0'>
2010-03-04 22:42:09 +00:00
<tr>
<th>Name</th>
<th>Project</th>
<th>Description</th>
<th>Children</th>
2010-03-15 15:47:32 +00:00
<th>&nbsp;</th>
2010-03-04 22:42:09 +00:00
</tr>
<% @tasks.each do |task| %>
<tr class="<%= cycle(:even, :odd)%>">
2010-03-15 15:47:32 +00:00
<td><%= link_to h(task.name), project_task_path(@project, task) %></td>
2010-03-04 22:42:09 +00:00
<td><%= link_to h(task.project.name), project_path(task.project) %></td>
2010-03-15 15:47:32 +00:00
<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>
2010-03-04 22:42:09 +00:00
</tr>
<% end %>
</table>
<% else %>
<p> No Dependet Tasks </p>
<% end %>