##// END OF EJS Templates
Makes changes link to entries on the revision view....
Jean-Philippe Lang -
r1538:93b3dba926ef
parent child
Show More
@@ -46,7 +46,9
46 46 <tbody>
47 47 <% @changes.each do |change| %>
48 48 <tr class="<%= cycle 'odd', 'even' %>">
49 <td><div class="square action_<%= change.action %>"></div> <%= change.path %> <%= "(#{change.revision})" unless change.revision.blank? %></td>
49 <td><div class="square action_<%= change.action %>"></div>
50 <%= link_to change.path, :action => 'entry', :id => @project, :path => change.relative_path, :rev => @changeset.revision %>
51 <%= "(#{change.revision})" unless change.revision.blank? %></td>
50 52 <td align="right">
51 53 <% if change.action == "M" %>
52 54 <%= link_to l(:label_view_diff), :action => 'diff', :id => @project, :path => without_leading_slash(change.relative_path), :rev => @changeset.revision %>
@@ -102,8 +102,13 class RepositoriesSubversionControllerTest < Test::Unit::TestCase
102 102 assert_response :success
103 103 assert_template 'revision'
104 104 assert_tag :tag => 'tr',
105 :child => { :tag => 'td', :content => %r{/test/some/path/in/the/repo} },
106 105 :child => { :tag => 'td',
106 # link to the entry at rev 2
107 :child => { :tag => 'a', :attributes => {:href => 'repositories/entry/ecookbook/test/some/path/in/the/repo?rev=2'},
108 :content => %r{/test/some/path/in/the/repo} }
109 },
110 :child => { :tag => 'td',
111 # link to partial diff
107 112 :child => { :tag => 'a', :attributes => { :href => '/repositories/diff/ecookbook/test/some/path/in/the/repo?rev=2' } }
108 113 }
109 114 end
General Comments 0
You need to be logged in to leave comments. Login now