Commit eca77c8b005a705e4c0daa27611293cbbf0a539d
- Date: Sun Mar 30 15:45:12 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: eca77c8b005a705e4c0daa27611293cbbf0a539d
- Tree SHA1: f884a4f28d26da41059a29a02d809313cc9d9384
Add back missing variable
Commit diff
| |   |
| 36 | 36 | <th></th> |
| 37 | 37 | <th></th> |
| 38 | 38 | </thead> |
| 39 | <% commits = [] -%> |
| 39 | 40 | <% repositories = @repositories.sort_by { |e| if e.last_commit then commits << e.last_commit; e.mainline? ? Time.now : e.last_commit.committed_date; else Time.at(0); end } %> |
| 40 | 41 | <% repositories.reverse_each do |repos| # FIXME: need to graph the parent relation proper -%> |
| 41 | 42 | <tr class="<%= cycle("even", "odd") -%> <%= repos.mainline? ? "mainline" : "clone" -%>"> |
| toggle raw diff |
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -36,6 +36,7 @@
<th></th>
<th></th>
</thead>
+ <% commits = [] -%>
<% repositories = @repositories.sort_by { |e| if e.last_commit then commits << e.last_commit; e.mainline? ? Time.now : e.last_commit.committed_date; else Time.at(0); end } %>
<% repositories.reverse_each do |repos| # FIXME: need to graph the parent relation proper -%>
<tr class="<%= cycle("even", "odd") -%> <%= repos.mainline? ? "mainline" : "clone" -%>"> |