<% if sprints && sprints.size > 0 %>
<%= l(:backlogs_sprints) %>
<% sprints.each do |sprint| %>
<%= link_to(sprint.name, {
:controller => 'rb_queries',
:action => 'show',
:project_id => project.id,
:sprint_id => sprint.id
}) %>
<% end %>
<% end %>
<% if project %>
<%= project.name %>
<%= link_to(l(:backlogs_product_backlog), {
:controller => 'rb_queries',
:action => 'show',
:project_id => project.id
}) %>
<% if Cards::TaskboardCards.selected_label %>
<%= link_to(l(:label_printable_cards), {
:controller => 'rb_stories',
:action => 'index',
:project_id => project.id,
:format => 'pdf'
}) %>
<% end %>
<% end %>
<% if Setting.rest_api_enabled? && key %>
<%= l(:label_webcal) %>
<% end %>
<% if sprint && sprint.has_burndown %>
<%= l(:label_sprint_name, {:name => sprint.name}) %>
<%= link_to(l(:label_task_board), {
:controller => 'rb_taskboards',
:action => 'show',
:sprint_id => sprint.id
})
%>
<%= link_to(l(:label_burndown), {
:controller => 'rb_burndown_charts',
:action => 'show',
:project_id => project.id,
:sprint_id => sprint.id
})
%>
<% if Cards::TaskboardCards.selected_label %>
<%= link_to(l(:label_printable_cards), {
:controller => 'rb_stories',
:action => 'index',
:project_id => project.id,
:sprint_id => sprint.id,
:format => 'pdf'
})
%>
<% end %>
<% if project.enabled_modules.any? {|m| m.name=="wiki"} %>
<%= link_to(l(:label_wiki), {
:controller => 'rb_wikis',
:action => 'show',
:project_id => project.id,
:sprint_id => sprint.id
})
%>
<% end %>
<%= render :partial => "rb_burndown_charts/burndown", :locals => {:div => 'burndown_', :burndown => sprint.burndown } %>
<% end %>