<% if User.current == user %>
    <%= link_to("编辑资料", my_account_path, :class => "fl UsersEditBtn") %>
<% else %>
    <%if(user.watched_by?(User.current))%>
        <%= link_to "取消关注",watch_path(:host=> Setting.host_name,:object_type=> 'user',:object_id=>user.id.to_s,:target_id=>user.id.to_s),:class => "userFollow mr27 fl", :method => "delete",:remote => "true", :title => "取消关注"%>
    <% else %>
        <%= link_to "添加关注",watch_path(:host=> Setting.host_name,:object_type=> 'user',:object_id=>user.id.to_s,:target_id=>user.id.to_s),:class => "userFollow mr27 fl", :method => "post",:remote => "true", :title => "添加关注"%>
    <% end %>
<% end %>