#4699: burndown graph callable from the taskboard

pull/6827/head
Jens Ulferts 14 years ago
parent 5ce43c78e0
commit 6b0e318230
  1. 12
      app/views/rb_taskboards/show.html.erb

@ -9,6 +9,7 @@
'app/issue',
'app/task',
'app/impediment',
'app/burndown',
:plugin => 'redmine_backlogs' %>
<%= javascript_include_tag url_for(:controller => 'rb_server_variables',
@ -23,7 +24,16 @@
<div class="contextual">
<% if @sprint.has_burndown? %>
<a id='show_charts'><%= l(:label_burndown) %></a>
<%= link_to(l('backlogs.show_burndown_chart'),
{},
:class => 'show_burndown_chart')%>
<%= javascript_tag "
jQuery(document).ready(function($){
console.log('ready');
var burndown = RB.Factory.initialize(RB.Burndown, $('.show_burndown_chart'));
burndown.setSprintId(#{@sprint.id});
});"%>
<% end %>
<span id="col_width">

Loading…
Cancel
Save