@@ -46,7 +46,9 | |||||
46 | <tbody> |
|
46 | <tbody> | |
47 | <% @changes.each do |change| %> |
|
47 | <% @changes.each do |change| %> | |
48 | <tr class="<%= cycle 'odd', 'even' %>"> |
|
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 | <td align="right"> |
|
52 | <td align="right"> | |
51 | <% if change.action == "M" %> |
|
53 | <% if change.action == "M" %> | |
52 | <%= link_to l(:label_view_diff), :action => 'diff', :id => @project, :path => without_leading_slash(change.relative_path), :rev => @changeset.revision %> |
|
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 | assert_response :success |
|
102 | assert_response :success | |
103 | assert_template 'revision' |
|
103 | assert_template 'revision' | |
104 | assert_tag :tag => 'tr', |
|
104 | assert_tag :tag => 'tr', | |
105 | :child => { :tag => 'td', :content => %r{/test/some/path/in/the/repo} }, |
|
|||
106 | :child => { :tag => 'td', |
|
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 | :child => { :tag => 'a', :attributes => { :href => '/repositories/diff/ecookbook/test/some/path/in/the/repo?rev=2' } } |
|
112 | :child => { :tag => 'a', :attributes => { :href => '/repositories/diff/ecookbook/test/some/path/in/the/repo?rev=2' } } | |
108 | } |
|
113 | } | |
109 | end |
|
114 | end |
General Comments 0
You need to be logged in to leave comments.
Login now