2015-07-09 15:27:49 +08:00
|
|
|
<% if(User.current.logged? && User.current!=target)%>
|
|
|
|
<%if(target.watched_by?(User.current))%>
|
|
|
|
<a id="user_watch_id" href="<%= watch_path(:object_type=>
|
2015-07-21 10:38:38 +08:00
|
|
|
'user',:object_id=>target.id,:target_id=>target.id) %>" class="fr qx_btn mr10" data-method="delete" data-remote="true" title="取消关注">取消关注</a>
|
2015-07-09 15:27:49 +08:00
|
|
|
<% else %>
|
|
|
|
<a id="user_watch_id" href="<%= watch_path(:object_type=>'user',:object_id=>target.id,:target_id=>target.id) %>" class="fr gz_btn mr10" data-method="post" data-remote="true" title="添加关注">关注</a>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|