Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Show true # of active burndowns

  • Loading branch information...
commit 9f28ac0f0a16bd345e46781dcdb030fe1e4e88f8 1 parent 3a921cc
@kneath authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  views/index.erb
  2. +2 −2 views/project.erb
View
2  views/index.erb
@@ -5,7 +5,7 @@
<% @projects.each do |project| %>
<li>
<h3><a href="/project/<%= project.id %>"><em><%=h project.token.account %> / </em><%=h project.name %></a></h3>
- <p><%= project.milestones.count %> active burndown<%= 's' unless project.milestones.count == 1 %></p>
+ <p><%= project.milestones.count(:closed_at => nil) %> active burndown<%= 's' unless project.milestones.count == 1 %></p>
</li>
<% end %>
</ul>
View
4 views/project.erb
@@ -5,7 +5,7 @@
<ul class="projects">
<li>
<h3><%=h @project.name %></h3>
- <p><%= @milestones.size %> active burndown<%= 's' unless @milestones.size == 1 %></p>
+ <p><%= @milestones.select{|m| m.active? }.size %> active burndown<%= 's' unless @milestones.size == 1 %></p>
<% if @milestones.any? %>
<ul class="milestones">
<% @milestones.each do |milestone| %>
@@ -33,7 +33,7 @@
</li>
<% if @closed_milestones.any? %>
<li>
- <h3>Closed / Milestones</h3>
+ <h3>Closed Milestones</h3>
<ul class="milestones">
<% @closed_milestones.each do |milestone| %>
<li>
Please sign in to comment.
Something went wrong with that request. Please try again.