2015-07-31 16:09:07 +08:00
|
|
|
<% if User.current.logged?%>
|
2015-08-21 15:23:03 +08:00
|
|
|
<%if(target.watched_by?(User.current))%>
|
|
|
|
<%= link_to "",watch_path(:object_type=> 'user',:object_id=>target.id,:target_id=>target.id),:class => "homepageFollow", :method => "delete",:remote => "true", :title => "取消关注"%>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to "",watch_path(:object_type=> 'user',:object_id=>target.id,:target_id=>target.id),:class => "homepageFollowCancel", :method => "post",:remote => "true", :title => "添加关注"%>
|
|
|
|
<% end %>
|
2015-07-09 15:27:49 +08:00
|
|
|
<% end %>
|