diff --git a/app/views/layouts/base_users.html.erb b/app/views/layouts/base_users.html.erb index 23927392f..8727eb0f0 100644 --- a/app/views/layouts/base_users.html.erb +++ b/app/views/layouts/base_users.html.erb @@ -47,12 +47,11 @@
-
<%= render :partial => "/praise_tread/praise_tread",:locals => {:obj => @user,:show_flag => false,:user_id => User.current.id}%>
-
- <%= l(:label_user_watcher) %> (<%= link_to User.watched_by(@user.id).count, :controller=>"users",:action=>"user_watchlist" %>)   - <%= l(:label_user_fans) %> (<%= link_to @user.watcher_users.count,:controller=>"users",:action=>"user_fanslist" %>) +
+ <%= l(:label_user_watcher) %> (<%= User.watched_by(@user.id).count %>)   + <%= l(:label_user_fans) %>(<%= @user.watcher_users.count %>)
@@ -93,7 +92,6 @@
- <%= l(:label_user_fans) %>
diff --git a/app/views/watchers/watch.js.erb b/app/views/watchers/watch.js.erb new file mode 100644 index 000000000..104583fef --- /dev/null +++ b/app/views/watchers/watch.js.erb @@ -0,0 +1 @@ +$('#fans_num').html('<%= j(@user.watcher_users.count) %>')