diff --git a/app/views/users/_collect_project.html.erb b/app/views/users/_collect_project.html.erb index 99bbea3df..f12579ef5 100644 --- a/app/views/users/_collect_project.html.erb +++ b/app/views/users/_collect_project.html.erb @@ -1,7 +1,7 @@ <% member = Member.where("user_id = #{@user.id} and project_id = #{project.id}").first %> <% if User.current == @user %> <% if member %> - <%= link_to "", cancel_or_collect_user_path(@user, :project => project.id), :class => "#{member.is_collect == 1 ? 'icons_project_favorite mt3' : 'icons_project_star mt3'}",:target => '_blank', :remote => true, :title => "#{member.is_collect == 1 ? '点击将其从个人主页的班级列表中移除' : '点击将其添加至个人主页的班级列表中'}" %> + <%= link_to "", cancel_or_collect_user_path(@user, :project => project.id), :class => "#{member.is_collect == 1 ? 'icons_project_favorite mt3' : 'icons_project_star mt3'}",:target => '_blank', :remote => true, :title => "#{member.is_collect == 1 ? '点击将其从个人主页的项目列表中移除' : '点击将其添加至个人主页的项目列表中'}" %> <% end %> <% else %> <% if member %>