diff --git a/app/views/users/_user_show.html.erb b/app/views/users/_user_show.html.erb index 7cbb20e40..9eabb2be5 100644 --- a/app/views/users/_user_show.html.erb +++ b/app/views/users/_user_show.html.erb @@ -30,9 +30,13 @@ 编辑资料 <%else%> <%if(user.watched_by?(User.current))%> - 取消关注 + + <%=link_to "取消关注", watch_path(:object_type=> 'user',:object_id=>user.id,:target_id=>user.id, :remote => "true"), :class => "fr qx_btn mr10", :method => "delete", :title => "取消关注" %> + <% else %> - 添加关注 + + <%= link_to "添加关注", watch_path(:object_type=>'user',:object_id=>user.id,:target_id=>user.id, :remote => "true"), :class => "fr gz_btn mr10", :method => "post", :title => "添加关注" %> + <% end %> <% end%> <% end %>