<% prevent_edit = User.current.allowed_to?(:update_tasks, defined?(project) ? project : task.project) ? '' : 'prevent_edit'%>
>
<%= work_package_link_or_empty(task) %>
<%= id_or_empty(task) %>
<%= task.subject %>
<%= assignee_name_or_empty(task) %>
<%= assignee_id_or_empty(task) %>
<%= remaining_hours(task) %>
<%= task.parent_id %>
<%= task.status_id %>
<%= render :partial => "shared/model_errors", :object => task.errors %>