%- pbi_id = "pbi_#{pbi.id}" -%>
<%- if User.current.allowed_to?(:edit_sprint_board, project) and
User.current.allowed_to?(:edit_issues, project) and
pbi.editable? and !read_only -%>
<%= link_to "", edit_pbi_path(pbi),
:remote => true, :method => "GET", :class => "icon icon-edit float-icon" %>
<%- end -%>
<%= render_issue_icons(pbi) %>
<%= render :partial => "post_its/sprint_board/fields", :formats => [:html],
:locals => {:project => project, :issue => pbi} %>
<%= link_to_issue(pbi, :tracker => false, :truncate => 150, :class => "warning") %>
<%= render :partial => "post_its/sprint_board/custom_fields", :formats => [:html],
:locals => {:project => project, :issue => pbi} %>
<%- if pbi.blocked? -%>
<%= l :label_blocked %>
<%- end -%>
|
||
<%- if pbi.has_story_points? -%> <%= render :partial => "common/scrum_story_points", :formats => [:html], :locals => {:project => project, :pbi => pbi, :read_only => read_only} %> <%- end -%> | <%- if User.current.allowed_to?(:view_time_entries, project) -%> <%= render_hours(pbi.total_time, :title => l(:label_total_effort), :ignore_zero => true) %> <%- end -%> | <%= render_hours(pbi.pending_effort, :title => l(:field_pending_effort), :ignore_zero => true) %> |