%- if @project.sprints_and_product_backlog.empty? -%>
<%= l(:label_no_data) %>
<%- else -%><%= l(:field_name) %> | <%= l(:field_start_date) %> | <%= l(:field_end_date) %> | <%= l(:label_product_backlog) %> | <%= l(:label_pbi_plural) %> | |
---|---|---|---|---|---|
<%= link_to(h(sprint.name), sprint.is_product_backlog ? project_product_backlog_index_path(@project) : sprint) %> | <%= format_date(sprint.sprint_start_date) %> | <%= format_date(sprint.sprint_end_date) %> | <%= checked_image sprint.is_product_backlog? %> | <%= sprint.pbis.count %> | <%- if User.current.allowed_to?(:manage_sprints, @project) -%> <%- unless checked_image sprint.is_product_backlog? -%> <%= link_to l(:label_edit_effort), edit_effort_sprint_path(sprint), :class => "icon icon-time-add" %> <%- end -%> <%= link_to l(:button_edit), edit_sprint_path(sprint), :class => "icon icon-edit" %> <%= delete_link sprint_path(sprint) %> <%- end -%> |
<%= link_to(l(:label_product_backlog_new), new_project_sprint_path(@project, :back_url => "", :create_product_backlog => true), :class => "icon icon-add") if User.current.allowed_to?(:manage_sprints, @project) and @project.product_backlog.nil? %> <%= link_to(l(:label_sprint_new), new_project_sprint_path(@project, :back_url => ""), :class => "icon icon-add") if User.current.allowed_to?(:manage_sprints, @project) %>