Add links to projects in Group projects list (#12843).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11183 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5ea7abcf83
commit
9a80e118b9
|
@ -13,7 +13,7 @@
|
||||||
<% @group.memberships.each do |membership| %>
|
<% @group.memberships.each do |membership| %>
|
||||||
<% next if membership.new_record? %>
|
<% next if membership.new_record? %>
|
||||||
<tr id="member-<%= membership.id %>" class="<%= cycle 'odd', 'even' %> class">
|
<tr id="member-<%= membership.id %>" class="<%= cycle 'odd', 'even' %> class">
|
||||||
<td class="project"><%=h membership.project %></td>
|
<td class="project"><%= link_to_project membership.project %></td>
|
||||||
<td class="roles">
|
<td class="roles">
|
||||||
<span id="member-<%= membership.id %>-roles"><%=h membership.roles.sort.collect(&:to_s).join(', ') %></span>
|
<span id="member-<%= membership.id %>-roles"><%=h membership.roles.sort.collect(&:to_s).join(', ') %></span>
|
||||||
<%= form_for(:membership, :remote => true,
|
<%= form_for(:membership, :remote => true,
|
||||||
|
|
|
@ -79,8 +79,11 @@ class GroupsControllerTest < ActionController::TestCase
|
||||||
get :edit, :id => 10
|
get :edit, :id => 10
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'edit'
|
assert_template 'edit'
|
||||||
assert_tag 'div', :attributes => {:id => 'tab-content-users'}
|
|
||||||
assert_tag 'div', :attributes => {:id => 'tab-content-memberships'}
|
assert_select 'div#tab-content-users'
|
||||||
|
assert_select 'div#tab-content-memberships' do
|
||||||
|
assert_select 'a', :text => 'Private child of eCookbook'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_update
|
def test_update
|
||||||
|
|
Loading…
Reference in New Issue