diff options
Diffstat (limited to 'app/views/repositories/_revisions.rhtml')
-rw-r--r-- | app/views/repositories/_revisions.rhtml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/repositories/_revisions.rhtml b/app/views/repositories/_revisions.rhtml index 06b1cbd49..1cdc45a35 100644 --- a/app/views/repositories/_revisions.rhtml +++ b/app/views/repositories/_revisions.rhtml @@ -11,10 +11,9 @@ <tbody> <% show_diff = entry && entry.is_file? && revisions.size > 1 %> <% line_num = 1 %> -<% revisions.each do |revision| %> -<% changeset = revision.is_a?(Change) ? revision.changeset : revision %> +<% revisions.each do |changeset| %> <tr class="<%= cycle 'odd', 'even' %>"> -<td class="id"><%= link_to (revision.revision || changeset.revision), :action => 'revision', :id => project, :rev => changeset.revision %></th> +<td class="id"><%= link_to changeset.revision, :action => 'revision', :id => project, :rev => changeset.revision %></th> <td class="checkbox"><%= radio_button_tag('rev', changeset.revision, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < revisions.size) %></td> <td class="checkbox"><%= radio_button_tag('rev_to', changeset.revision, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td> <td align="center" style="width:15%"><%= format_time(changeset.committed_on) %></td> |