Feature #5242 » adds_project_name_to_associated_revision_link_v3.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, |
|
8 |
:text => "#{l(:label_revision)} #{changeset.format_identifier}") %> |
|
7 |
<p><%= link_to_revision(changeset, |
|
8 |
changeset.repository, |
|
9 |
:text => |
|
10 |
"#{l(:label_revision)} #{changeset.format_identifier}" + |
|
11 |
(changeset.project.id == project.id ? "" : " (#{changeset.project.name})") |
|
12 |
) %> |
|
9 | 13 |
<% if changeset.filechanges.any? && User.current.allowed_to?(:browse_repository, changeset.project) %> |
10 | 14 |
(<%= link_to(l(:label_diff), |
11 | 15 |
:controller => 'repositories', |
test/functional/issues_controller_test.rb | ||
---|---|---|
2644 | 2644 |
}, |
2645 | 2645 |
:xhr => true |
2646 | 2646 |
) |
2647 |
assert_select 'a[href=?]', '/projects/ecookbook/repository/10/revisions/3' |
|
2647 |
assert_select 'a[href=?]', '/projects/ecookbook/repository/10/revisions/3', 'Revision 3 (eCookbook)'
|
|
2648 | 2648 |
end |
2649 | 2649 | |
2650 | 2650 |
def test_show_should_display_watchers |