OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/shared/_view_issues_sidebar.html.erb

66 lines
2.3 KiB

<div>
<% if sprints && sprints.size > 0 %>
<h3><%= l(:backlogs_sprints) %></h3>
<% sprints.each do |sp| %>
<%= link_to(sp.name, {
:controller => 'rb_queries',
:action => 'show',
:project_id => project,
:sprint_id => sp
}) %><br/>
<% end %>
<% end %>
<% if sprint.present? %>
<h3><%= l(:label_sprint_name, {:name => sprint.name}) %></h3>
<%= link_to(l(:label_task_board), {
:controller => 'rb_taskboards',
:action => 'show',
:sprint_id => sprint
})
%><br/>
<% 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'
})
%><br/>
<% end %>
<% if project.module_enabled? "wiki" %>
<%= link_to(l(:label_wiki), {
:controller => 'rb_wikis',
:action => 'show',
:project_id => project,
:sprint_id => sprint
})
%><br/>
<% end %>
<% if sprint.has_burndown? %>
<%= render :partial => 'shared/backlogs_header' %>
<%= javascript_include_tag 'backlogs/app/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')
%><br/>
<%= javascript_tag "
jQuery(document).ready(function(){
var burndown = RB.Factory.initialize(RB.Burndown, jQuery('.show_burndown_chart'));
burndown.setSprintId(#{sprint.id});
});" %>
<% end %>
<% end %>
</div>