Project

General

Profile

Patch #1202 » redmine-changeset_r1552-edited.diff

Marc Liyanage, 2008-09-18 14:10

View differences:

trunk/test/functional/repositories_subversion_controller_test.rb (revision 1552)
assert_response :success
assert_template 'revision'
assert_tag :tag => 'tr',
:child => { :tag => 'td', :content => %r{/test/some/path/in/the/repo} },
:child => { :tag => 'td',
# link to the entry at rev 2
:child => { :tag => 'a', :attributes => {:href => 'repositories/annotate/ecookbook/test/some/path/in/the/repo?rev=2'},
:content => %r{/test/some/path/in/the/repo} }
},
:child => { :tag => 'td',
# link to partial diff
:child => { :tag => 'a', :attributes => { :href => '/repositories/diff/ecookbook/test/some/path/in/the/repo?rev=2' } }
}
end
trunk/app/views/repositories/revision.rhtml (revision 1552)
<tbody>
<% @changes.each do |change| %>
<tr class="<%= cycle 'odd', 'even' %>">
<td><div class="square action_<%= change.action %>"></div> <%= change.path %> <%= "(#{change.revision})" unless change.revision.blank? %></td>
<td><div class="square action_<%= change.action %>"></div>
<%= link_to change.path, :action => 'annotate', :id => @project, :path => without_leading_slash(change.relative_path), :rev => @changeset.revision %>
<%= "(#{change.revision})" unless change.revision.blank? %></td>
<td align="right">
<% if change.action == "M" %>
<%= link_to l(:label_view_diff), :action => 'diff', :id => @project, :path => without_leading_slash(change.relative_path), :rev => @changeset.revision %>
(4-4/4)