<% if sprints && sprints.size > 0 %>

<%= l(:backlogs_sprints) %>

<% sprints.each do |sprint| %> <%= link_to(sprint.name, { :controller => 'backlogs', :action => 'select_issues', :project_id => project.id, :sprint_id => sprint.id }) %>
<% end %> <% end %> <% if project %>

<%= project.name %>

<%= link_to(l(:backlogs_product_backlog), { :controller => 'backlogs', :action => 'select_issues', :project_id => project.id }) %>
<%= link_to(l(:label_printable_cards), { :controller => 'backlogs', :action => 'product_backlog_cards', :project_id => project.id }) %>
<% end %> <% if Setting.rest_api_enabled? && key %> <%= l(:label_calendar) %>
<% end %> <% if sprint && sprint.has_burndown %>

<%= l(:label_sprint_name, {:name => sprint.name}) %>

<%= link_to(l(:label_task_board), { :controller => 'backlogs', :action => 'show', :id => sprint.id }) %>
<%= link_to(l(:label_burndown), { :controller => 'backlogs', :action => 'burndown', :project_id => project.id, :sprint_id => sprint.id }) %>
<%= link_to(l(:label_printable_cards), { :controller => 'backlogs', :action => 'taskboard_cards', :project_id => project.id, :sprint_id => sprint.id }) %>
<% if project.enabled_modules.any? {|m| m.name=="wiki"} %> <%= link_to(l(:label_wiki), { :controller => 'backlogs', :action => 'wiki_page', :project_id => project.id, :sprint_id => sprint.id }) %>
<% end %>
<%= render :partial => "charts/burndown", :locals => {:div => 'burndown_', :burndown => sprint.burndown } %> <% end %>