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

83 lines
2.9 KiB

<div>
<% if sprints && sprints.size > 0 %>
<h3><%= l(:backlogs_sprints) %></h3>
<% sprints.each do |sprint| %>
<%= link_to(sprint.name, {
:controller => 'rb_queries',
:action => 'show',
:project_id => project.id,
:sprint_id => sprint.id
}) %><br/>
<% end %>
<% end %>
<% if project %>
<h3><%= project.name %></h3>
<%= link_to(l(:backlogs_product_backlog), {
:controller => 'rb_queries',
:action => 'show',
:project_id => project.id
}) %><br/>
<% if Cards::TaskboardCards.selected_label %>
<%= link_to(l(:label_printable_cards), {
:controller => 'rb_stories',
:action => 'index',
:project_id => project.id,
:format => 'pdf'
}) %><br/>
<% end %>
<% end %>
<% if Setting.rest_api_enabled? && key %>
<a href="<%= url_for({
:only_path => false,
:protocol => webcal,
:controller => :rb_calendars,
:action => :show,
14 years ago
:project_id => project,
:format => 'xml',
14 years ago
:key => key }) %>"><%= l(:label_webcal) %></a><br>
<% end %>
<% if sprint && sprint.has_burndown %>
<h3><%= l(:label_sprint_name, {:name => sprint.name}) %></h3>
<%= link_to(l(:label_task_board), {
:controller => 'rb_taskboards',
:action => 'show',
14 years ago
:sprint_id => sprint.id
})
%><br/>
<%= link_to(l(:label_burndown), {
:controller => 'rb_burndown_charts',
:action => 'show',
:project_id => project.id,
:sprint_id => sprint.id
})
%><br/>
<% 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'
})
%><br/>
<% 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
})
%><br/>
<% end %>
<div id="burndown_<%= sprint.id %>" class="minimal" style="margin-left:0px; margin-top:20px; width:250px; height:192px;"></div>
<%= render :partial => "rb_burndown_charts/burndown", :locals => {:div => 'burndown_', :burndown => sprint.burndown } %>
<% end %>
</div>