26 lines
707 B
Plaintext
26 lines
707 B
Plaintext
|
<h1>Listing tasks</h1>
|
||
|
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Project</th>
|
||
|
<th>Description</th>
|
||
|
<th>Parent</th>
|
||
|
</tr>
|
||
|
|
||
|
<% @tasks.each do |task| %>
|
||
|
<tr>
|
||
|
<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.parent %></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>
|
||
|
|
||
|
<br />
|
||
|
|
||
|
<%= link_to 'New task', new_project_task_path(@project) %>
|