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

<%= l(:backlogs_sprints) %>

<% sprints.each do |sp| %> <%= link_to(sp.name, { :controller => '/rb_queries', :action => 'show', :project_id => project, :sprint_id => sp }) %>
<% end %> <% end %> <% if sprint.present? %>

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

<%= link_to(l(:label_task_board), { :controller => '/rb_taskboards', :action => 'show', :sprint_id => sprint }) %>
<% if OpenProject::Backlogs::TaskboardCard::PageLayout.available? %> <%= link_to(l(:label_sprint_cards), { :controller => '/rb_stories', :action => 'index', :project_id => project, :sprint_id => sprint, :format => 'pdf' }) %>
<% end %> <% if project.module_enabled? "wiki" %> <%= link_to(l(:label_wiki), { :controller => '/rb_wikis', :action => 'show', :project_id => project, :sprint_id => sprint }) %>
<% end %> <% if sprint.has_burndown? %> <%= render :partial => 'shared/backlogs_header' %> <%= javascript_include_tag 'backlogs/burndown', :plugin => 'chiliproject_backlogs' %> <%= javascript_include_tag url_for(:controller => '/rb_server_variables', :action => 'show', :project_id => project, :sprint_id => sprint) %> <%= link_to(l('backlogs.show_burndown_chart'), {}, :class => 'show_burndown_chart') %>
<%= javascript_tag " jQuery(document).ready(function(){ var burndown = RB.Factory.initialize(RB.Burndown, jQuery('.show_burndown_chart')); burndown.setSprintId(#{sprint.id}); });" %> <% end %> <% end %>