diff --git a/app/views/layouts/new_base_user.html.erb b/app/views/layouts/new_base_user.html.erb index 3f5e2eb25..550f6653f 100644 --- a/app/views/layouts/new_base_user.html.erb +++ b/app/views/layouts/new_base_user.html.erb @@ -30,12 +30,13 @@
- <%= 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 @@
- 动态 + <%= link_to "动态",user_activities_path(@user.id),:class => "homepageMenuText"%>
课程 @@ -103,12 +117,32 @@
+ + diff --git a/public/images/homepage_icon.png b/public/images/homepage_icon.png index ad293b7ca..5b61ff102 100644 Binary files a/public/images/homepage_icon.png and b/public/images/homepage_icon.png differ diff --git a/public/stylesheets/new_public.css b/public/stylesheets/new_public.css index add80c7f2..1f0612fc1 100644 --- a/public/stylesheets/new_public.css +++ b/public/stylesheets/new_public.css @@ -403,7 +403,7 @@ a.homepageSearchIcon:hover {background:url(../images/nav_icon.png) -49px 3px no- .homepageLeft {width:240px; float:left; margin-right:10px; margin-bottom:10px;} .homepageRight {width:750px; float:left; margin-top:15px; margin-bottom:10px;} .homepagePortraitContainer {width:238px; border:1px solid #dddddd; background-color:#ffffff; margin-top:15px; padding-bottom:15px;} -.homepagePortraitImage {width:206px; height:206px; padding:2px; margin:15px 16px 14px 16px; position:relative; border:1px solid #cbcbcb;} +.homepagePortraitImage {width:206px; height:206px; padding:2px; margin:15px 13px 5px 13px;; position:relative; border:1px solid #cbcbcb;} .homepagePortraitImage:hover {border:1px solid #15bccf;} .homepageFollow {background:url(../images/homepage_icon.png) -10px -8px no-repeat; width:20px; height:20px; position:absolute; right:9px; top:9px;} .homepageFollowCancel {background:url(../images/homepage_icon.png) -178px -8px no-repeat; width:20px; height:20px; position:absolute; right:9px; top:9px;} @@ -509,6 +509,8 @@ a.postOptionLink:hover {color:#ffffff; background-color:#15bccf;} .postAttSize {color:#888888; font-size:12px;} a.postGrey {color:#484848;} a.postGrey:hover {color:#000000;} +a.gz_btn{display:block; background:url(../images/pic_uersall.png) -318px -25px no-repeat; width:53px; height:18px; border:1px solid #cdcdcd; color:#333333; padding:0px 0 0 18px;margin-top: 2px;} +a:hover.gz_btn{ color:#ff5722;}