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

26 lines
707 B
Plaintext
Raw Normal View History

2010-03-04 06:22:45 +00:00
<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) %>