Project

General

Profile

Feature #5242 » adds_project_name_to_associated_revision_link_v2.patch

Yuichi HARADA, 2018-12-04 03:56

View differences:

app/views/issues/_changesets.html.erb
<% changesets.each do |changeset| %>
<div class="changeset">
<p><%= link_to_revision(changeset, changeset.repository,
:text => "#{l(:label_revision)} #{changeset.format_identifier}") %>
:text => "#{l(:label_revision)} #{changeset.format_identifier}" + (changeset.project.id == project.id ? "" : " (#{changeset.project.name})")) %>
<% if changeset.filechanges.any? && User.current.allowed_to?(:browse_repository, changeset.project) %>
(<%= link_to(l(:label_diff),
:controller => 'repositories',
app/views/issues/show.html.erb
<% if @changesets.present? %>
<div id="issue-changesets">
<h3><%=l(:label_associated_revisions)%></h3>
<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
<%= render :partial => 'changesets', :locals => {:changesets => @changesets, :project => @project} %>
</div>
<% end %>
test/functional/issues_controller_test.rb
:id => issue.id
}
assert_select 'a[href=?]', '/projects/ecookbook/repository/10/revisions/3'
assert_select 'a[href=?]', '/projects/ecookbook/repository/10/revisions/3', 'Revision 3 (eCookbook)'
end
def test_show_should_display_watchers
(3-3/6)