%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%> <%= render :partial => 'work_packages/action_menu', :locals => { work_package: controller.work_package } %> <% work_package_breadcrumb %> <%#= content_tag('h2', h(controller.work_package.tracker.name) + ' #' + controller.work_package.id.to_s) %> <%= content_tag('h2', controller.work_package.id.to_s) %>
<%= Issue.human_attribute_name(:status)%>: | <%#= h(controller.work_package.status.name) %> | <%= Issue.human_attribute_name(:start_date)%>: | <%= format_date(controller.work_package.start_date) %> |
---|---|---|---|
<%= Issue.human_attribute_name(:priority)%>: | <%#= h(controller.work_package.priority.name) %> | <%= Issue.human_attribute_name(:due_date)%>: | <%= format_date(controller.work_package.due_date) %> |
<%= Issue.human_attribute_name(:assigned_to)%>: | <%= avatar(controller.work_package.assigned_to, :size => "14") %><%= controller.work_package.assigned_to ? link_to_user(controller.work_package.assigned_to) : "-" %> | <%= Issue.human_attribute_name(:done_ratio)%>: | <%= progress_bar controller.work_package.done_ratio, :width => '80px', :legend => "#{controller.work_package.done_ratio}%" %> |
<%= Issue.human_attribute_name(:category)%>: | <%=h(controller.work_package.category ? controller.work_package.category.name : "-") %> | <% if User.current.allowed_to?(:view_time_entries, controller.project) %><%=l(:label_spent_time)%>: | <%#= controller.work_package.spent_hours > 0 ? (link_to l_hours(controller.work_package.spent_hours), issue_time_entries_path(controller.work_package)) : "-" %> | <% end %>
<%= Issue.human_attribute_name(:fixed_version)%>: | <%= controller.work_package.fixed_version ? link_to_version(controller.work_package.fixed_version) : "-" %> | <% if controller.work_package.estimated_hours %><%= Issue.human_attribute_name(:estimated_hours)%>: | <%= l_hours(controller.work_package.estimated_hours) %> | <% end %>
<%= Issue.human_attribute_name(:description)%>