2015-07-31 16:09:07 +08:00
|
|
|
<% if User.current.logged?%>
|
|
|
|
<% if User.current == target%>
|
|
|
|
<a href="<%= url_for(:controller => 'my', :action => 'account') %>" class="fr gz_btn mr10 ">编辑资料</a>
|
|
|
|
<%else%>
|
|
|
|
<%if(target.watched_by?(User.current))%>
|
|
|
|
<a id="user_watch_id" href="<%= watch_path(:object_type=> 'user',:object_id=>target.id,:target_id=>target.id) %>" class="fr qx_btn mr10" data-method="delete" data-remote="true" title="取消关注">取消关注</a>
|
|
|
|
<% 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%>
|
2015-07-09 15:27:49 +08:00
|
|
|
<% end %>
|