dev_library
p31729568 6 years ago
parent effee3e7c8
commit f5405ec534

@ -13,7 +13,7 @@
</div>
<% if user != User.current %>
<div class="fr">
<% if(user.watched_by?(User.current)) %>
<% if Watcher.where(user_id: User.current.id, watchable_id: user.id, watchable_type: %w(Principal User)).exists? %>
<%= link_to "取消关注",
unwatch_path(:object_type => 'user', :object_id => user.id, :target_id => @user.id, :action_name => action),
:class => "user_default_btn user_private_btn fl mr30 mt20",

Loading…
Cancel
Save