<%- task_id = "task_#{task.id}" -%>
<%- if User.current.allowed_to?(:edit_sprint_board, project) and User.current.allowed_to?(:edit_issues, project) and task.editable? and !read_only -%> <%= link_to "", edit_task_path(task), :remote => true, :method => "GET", :class => "icon icon-edit float-icon" %> <%- end -%> <%= render_issue_icons(task) %> <%= render :partial => "post_its/sprint_board/fields", :formats => [:html], :locals => {:project => project, :issue => task} %>
<%= link_to_issue(task, :tracker => false, :truncate => 100) %>
<%= render :partial => "post_its/sprint_board/custom_fields", :formats => [:html], :locals => {:project => project, :issue => task} %>
<%- task.doers.each do |doer| -%>
<%= avatar(doer, :size => "14") %> <%= link_to_user doer %>
<%- end -%> <%- task.reviewers.each do |reviewer| -%>
<%= avatar(reviewer, :size => "14") %> <%= link_to_user reviewer %>
<%- end -%> <%- if task.blocked? -%>
<%= l :label_blocked %>
<%- end -%>
<%= render_hours(task.estimated_hours, :title => l(:field_estimated_hours)) %> <%- if User.current.allowed_to?(:view_time_entries, project) -%> <%= render_hours(task.spent_hours, :title => l(:label_spent_time), :ignore_zero => true, :link => respond_to?(:issue_time_entries_path) ? issue_time_entries_path(task) : project_issue_time_entries_path(project, task)) %> <%- end -%> <%= render :partial => "common/scrum_pending_effort", :formats => [:html], :locals => {:project => project, :task => task} %>
<%= render :partial => "post_its/sprint_board/task", :formats => [:js], :locals => {:project => project, :other_pbi_status_ids => other_pbi_status_ids, :task_id => task_id, :task => task} %> <%= render :partial => "post_its/sprint_board/task_context_menu", :formats => [:html], :locals => {:project => project, :task => task, :pbi_status_id => pbi_status_id, :other_pbi_status_ids => other_pbi_status_ids, :task_id => task_id} %>