Patch #1202 » redmine-changeset_r1552-edited.diff
| trunk/test/functional/repositories_subversion_controller_test.rb (revision 1552) | ||
|---|---|---|
| 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/annotate/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 |
| trunk/app/views/repositories/revision.rhtml (revision 1552) | ||
|---|---|---|
| 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 => 'annotate', :id => @project, :path => without_leading_slash(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 %> |
- « Previous
- 1
- 2
- 3
- 4
- Next »