- <%= image_tag(url_to_avatar(User.current),width:"208", height: "208") %>
+ <%= image_tag(url_to_avatar(@user),width:"206", height: "206") %>
<% if User.current.logged?%>
<% if User.current == @user%>
- <%#= link_to "编辑资料", my_account_path, :class => "homepageEditProfile c_white"%>
-
+
<% else %>
@@ -49,7 +50,6 @@
<% end %>
<% end%>
-
<%= @user.login %>
@@ -58,35 +58,49 @@
<% end %>
+ <%= link_to "编辑资料", my_account_path, :class => "fr gz_btn mr10"%>
-
这位童鞋很懒,什么也没有留下~
-
-
-
-
+ <% if @user.user_extensions && @user.user_extensions.brief_introduction && !@user.user_extensions.brief_introduction.empty? %>
+
+ <%= @user.user_extensions.brief_introduction %>
+
+
+
+
+ <% else%>
+ <% if User.current == @user%>
+
+ 这位童鞋很懒,什么也没有留下~
+
+
+
+
+ <% end%>
+ <% end %>
-
85
+ <%= link_to User.watched_by(@user.id).count.to_s, {:controller=>"users", :action=>"user_watchlist",:id=>@user.id},:class=>"homepageImageNumber" %>
关注
-
24
+ <%= link_to @user.watcher_users.count.to_s, {:controller=>"users", :action=>"user_fanslist",:id=>@user.id},:class=>"homepageImageNumber"%>
粉丝
-
91
+ <%= link_to(format("%.2f" ,get_option_number(@user,1).total_score ).to_i,
+ {:controller => 'users', :action => 'show_new_score', :remote => true, :id => @user.id }, :class => 'homepageImageNumber',:id => 'user_score') %>
积分
@@ -95,7 +109,7 @@