forked from edavis10/redmine_burndown
-
Notifications
You must be signed in to change notification settings - Fork 2
/
show.html.erb
15 lines (15 loc) · 795 Bytes
/
show.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<h2><%= @version.name %> <%= l(:burndown) %></h2>
<p><div id="placeholder" style="width:750px;height:400px"></div>
<%= chart("placeholder", { "Est. Remaining Time"=> {:collection => @chart.sprint_data,:x=>:date, :y=>:hours},
"Ideal Burndown"=> {:collection => @chart.ideal_data,:x=>:date, :y=>:hours}
},
{"xaxis"=>{:mode=>:time}, :lines=>{:show=>true}, :points=>{:show=>true}, :grid=>{:markings=> "weekendAreas"}} ) %>
</p>
<% content_for :sidebar do -%>
<h3><%= l(:label_version_plural) %></h3>
<ul id="sprint_burndown_list">
<% @project.versions.each do |version| -%>
<li<%= %Q[ class="selected"] if @version == version %>><%= link_to(version.name, show_burndown_path(:project_id => @project, :id => version)) %></li>
<% end -%>
</ul>
<% end -%>