From 941a8c31b19141f3163757f85fa753f2cec1aae9 Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Tue, 21 Jan 2014 21:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=EF=BC=9A=E5=8F=82?= =?UTF-8?q?=E8=B5=9B=E4=BA=BA=E5=91=98=E5=88=97=E8=A1=A8=E4=B8=AD=E4=B8=8D?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=98=BE=E7=A4=BA=E8=AF=BE=E7=A8=8B=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/show_participator.html.erb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/bids/show_participator.html.erb b/app/views/bids/show_participator.html.erb index e19340ee2..83b6cf241 100644 --- a/app/views/bids/show_participator.html.erb +++ b/app/views/bids/show_participator.html.erb @@ -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 %>

+ +