11 lines
753 B
Plaintext
11 lines
753 B
Plaintext
<% 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%>
|
|
<% end %> |