% if @project %>
$('#fans_num').html('<%= @project.watcher_users.count %>');
// $('#project-'+'<%#=@project.id%>'+'-watcher').html('添加关注');
$('#project-'+'<%=@project.id%>'+'-watcher').replaceWith("<%= escape_javascript watcher_link_for_project(@project, User.current)%>");
<% elsif params[:user_watcher] == "user_watchlist" %>
$("#user_watch_list").html('<%= j (render :partial => "users/user_watcher_or_fans_list",
:locals => { :users => @user_watchlist, :user_count => @user_watchlist_count, :user_pages => @watchlist_pages, :action => "user_watchlist" }) %>');
// $("#user_fans_list").html('<%#= j (render :partial => "users/user_watcher_or_fans_list", :locals => {:users => @user_fanlist }) %>');
$("#user_watcher_cout").html("我的关注 " + '<%= @user_watchlist_count %>');
<% elsif params[:user_watcher] == "user_fanslist" %>
$("#user_fans_list").html("<%= j (render :partial => "users/user_watcher_or_fans_list",
:locals => { :users => @user_fanlist, :user_count => @user_fanlist_count, :user_pages => @fans_pages, :action => 'user_fanslist' }) %>");
$("#user_watcher_cout").html("我的关注 " + '<%= @user_watchlist_count %>');
<% elsif @collaborators.present? %>
$("#collaborators_list").html("<%= j(render :partial => 'shixuns/collaborators_list') %>");
<% else %>
$('#fans_num').html('<%= j(@user.watcher_users.count) %>');
<% end %>