|
|
|
@ -29,13 +29,17 @@
|
|
|
|
|
<% cond = Project.visible_condition(User.current) + "AND projects.project_type <> 1" %>
|
|
|
|
|
<% memberships = user.memberships.all(:conditions => cond) %>
|
|
|
|
|
<%= l(:label_x_contribute_to, :count => memberships.count) %>
|
|
|
|
|
<% for member in memberships %>
|
|
|
|
|
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%
|
|
|
|
|
links = Array.new
|
|
|
|
|
memberships.collect{|member| links << link_to_project(member.project) }
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
|
<%= raw links.join(" , ") %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<!-- added by bai -->
|
|
|
|
|
<!--
|
|
|
|
|
<p class="font_description">
|
|
|
|
|
<% unless user.memberships.empty? %>
|
|
|
|
|
<% cond = Project.visible_condition(User.current) + "AND projects.project_type = 1" %>
|
|
|
|
@ -46,8 +50,10 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|
-->
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|