25 lines
852 B
Plaintext
25 lines
852 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>
|
||
|
<p><%= link_to 'Create One', new_project_task_path(@project, :parent => @task.id) %>
|
||
|
<% end %>
|