when 'changesets'
@changesets = @issue.changesets.visible.preload(:repository, :user).to_a
@changesets.reverse! if User.current.wants_comments_in_reverse_order?
- render :partial => 'issues/tabs/changesets', :locals => {:changesets => @changesets}
+ render :partial => 'issues/tabs/changesets', :locals => {:changesets => @changesets, :project => @project}
end
end
<%= avatar(changeset.user, :size => "24") %>
<%= authoring changeset.committed_on, changeset.author, :label => :label_added_time_by %>
</h4>
- <p><%= link_to_revision(changeset, changeset.repository,
+ <p>
+ <%= "#{changeset.project.name} - " unless changeset.project == project %>
+ <%= link_to_revision(changeset, changeset.repository,
:text => "#{l(:label_revision)} #{changeset.format_identifier}") %>
<% if changeset.filechanges.any? && User.current.allowed_to?(:browse_repository, changeset.project) %>
(<%= link_to(l(:label_diff),
:xhr => true
)
assert_select 'a[href=?]', '/projects/ecookbook/repository/10/revisions/3'
+ assert_select 'div.changeset p', :text => /eCookbook - /
end
def test_show_should_display_watchers