From 6b0e318230f8e0cf11ab077346da1bb2f7dc0ddd Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Thu, 12 May 2011 13:30:28 +0200 Subject: [PATCH] #4699: burndown graph callable from the taskboard --- app/views/rb_taskboards/show.html.erb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/views/rb_taskboards/show.html.erb b/app/views/rb_taskboards/show.html.erb index 65ebf834db..4be8c03006 100644 --- a/app/views/rb_taskboards/show.html.erb +++ b/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 @@
<% if @sprint.has_burndown? %> - <%= l(:label_burndown) %> + <%= 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 %>