Display projects as links in users/memberships partial. #5898
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3914 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
70973fda64
commit
491c9d2b55
|
@ -14,7 +14,9 @@
|
||||||
<% @user.memberships.each do |membership| %>
|
<% @user.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 h(membership.project), {:controller => 'projects', :action => 'show', :id => 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>
|
||||||
<% remote_form_for(:membership, :url => { :action => 'edit_membership', :id => @user, :membership_id => membership },
|
<% remote_form_for(:membership, :url => { :action => 'edit_membership', :id => @user, :membership_id => membership },
|
||||||
|
|
Loading…
Reference in New Issue