Feature #5242 » adds_project_name_to_associated_revision_link_v4.patch
app/controllers/issues_controller.rb | ||
---|---|---|
239 | 239 |
when 'changesets' |
240 | 240 |
@changesets = @issue.changesets.visible.preload(:repository, :user).to_a |
241 | 241 |
@changesets.reverse! if User.current.wants_comments_in_reverse_order? |
242 |
render :partial => 'issues/tabs/changesets', :locals => {:changesets => @changesets} |
|
242 |
render :partial => 'issues/tabs/changesets', :locals => {:changesets => @changesets, :project => @project}
|
|
243 | 243 |
end |
244 | 244 |
end |
245 | 245 |
app/views/issues/tabs/_changesets.html.erb | ||
---|---|---|
4 | 4 |
<%= avatar(changeset.user, :size => "24") %> |
5 | 5 |
<%= authoring changeset.committed_on, changeset.author, :label => :label_added_time_by %> |
6 | 6 |
</h4> |
7 |
<p><%= link_to_revision(changeset, changeset.repository, |
|
7 |
<p> |
|
8 |
<%= "#{changeset.project.name} - " if changeset.project.id != project.id %> |
|
9 |
<%= link_to_revision(changeset, changeset.repository, |
|
8 | 10 |
:text => "#{l(:label_revision)} #{changeset.format_identifier}") %> |
9 | 11 |
<% if changeset.filechanges.any? && User.current.allowed_to?(:browse_repository, changeset.project) %> |
10 | 12 |
(<%= link_to(l(:label_diff), |
test/functional/issues_controller_test.rb | ||
---|---|---|
2661 | 2661 |
:xhr => true |
2662 | 2662 |
) |
2663 | 2663 |
assert_select 'a[href=?]', '/projects/ecookbook/repository/10/revisions/3' |
2664 |
assert_select 'div.changeset p', :text => /eCookbook - / |
|
2664 | 2665 |
end |
2665 | 2666 | |
2666 | 2667 |
def test_show_should_display_watchers |