2016-01-08 14:12:55 +08:00
|
|
|
<div class="userCard boxShadow" style="<%= User.current == user ? 'top:-153px;':'' %>">
|
2016-01-07 10:10:24 +08:00
|
|
|
<div class="userAvatarWrap fl">
|
2016-03-08 16:44:03 +08:00
|
|
|
<%= link_to image_tag(url_to_avatar(user), :width => "50", :height => "50"), user_url_in_org(user.id), :alt => "用户头像", :target => '_blank' %>
|
2016-01-08 14:12:55 +08:00
|
|
|
<%#= image_tag(url_to_avatar(user), :width => "50", :height => "50") %>
|
2016-01-07 10:10:24 +08:00
|
|
|
<!--<img src="images/homepageImage.jpg" width="50" height="50" alt="个人头像" />-->
|
|
|
|
</div>
|
2016-01-08 14:12:55 +08:00
|
|
|
<div class="fl">
|
2016-01-14 17:52:48 +08:00
|
|
|
<p class="homepageImageName mb5 hidden" style="max-width:88px;font-size:16px; color:#484848; margin-left:15px; margin-right:8px; height:21px; float:left;"><%= user %></p>
|
2016-01-26 10:35:54 +08:00
|
|
|
<% if (user.user_extensions && (user.user_extensions.identity != 2) ) %>
|
|
|
|
<span class="<%= user.user_extensions.gender == 1 ? 'homepageImageSexWomen' : 'homepageImageSexMan' %> "></span>
|
|
|
|
<% end %>
|
|
|
|
<!--<span class="homepageImageSex"></span>-->
|
2016-01-07 10:10:24 +08:00
|
|
|
<div class="cl"></div>
|
2016-01-08 14:12:55 +08:00
|
|
|
<p class="mb8 c_dark f14">
|
|
|
|
<span class="mr15 hidden fl ml15" style="max-width:90px;"><%= user.show_name %></span>
|
2016-01-26 10:35:54 +08:00
|
|
|
<% if user.user_extensions && user.user_extensions.identity %>
|
|
|
|
<%= get_user_roll(user) %>
|
|
|
|
<% end %>
|
2016-01-08 14:12:55 +08:00
|
|
|
</p>
|
2016-01-07 10:10:24 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div>
|
|
|
|
<div class="homepageImageBlock mb10">
|
2016-03-10 12:47:10 +08:00
|
|
|
<div><%= link_to User.watched_by(user.id).count, user_watchlist_url_in_org(user.id), :class => 'homepageImageNumber',:target => "_blank" %></div>
|
|
|
|
<div class="homepageImageText"><%= link_to '关注',user_watchlist_url_in_org(user.id),:target => "_blank" %></div>
|
2016-01-07 10:10:24 +08:00
|
|
|
</div>
|
|
|
|
<div class="homepageVerDiv"></div>
|
|
|
|
<div class="homepageImageBlock">
|
2016-03-10 12:47:10 +08:00
|
|
|
<div><%= link_to user.watcher_users.count,user_fanslist_url_in_org(user.id), :class => "homepageImageNumber fans_count_#{user.id}",:target => "_blank" %></div>
|
|
|
|
<div class="homepageImageText"><%= link_to '粉丝', user_fanslist_url_in_org(user.id),:target => "_blank" %></div>
|
2016-01-07 10:10:24 +08:00
|
|
|
</div>
|
|
|
|
<div class="homepageVerDiv"></div>
|
|
|
|
<div class="homepageImageBlock">
|
2016-03-10 12:47:10 +08:00
|
|
|
<div><%= link_to user.blog.blog_comments.where("#{BlogComment.table_name}.parent_id is null").count, user_blogs_url_in_org(user.id), :class => 'homepageImageNumber',:target => "_blank" %></div>
|
|
|
|
<div class="homepageImageText"><%= link_to '博客', user_blogs_url_in_org(user.id),:target => "_blank" %></div>
|
2016-01-07 10:10:24 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
2016-01-08 14:12:55 +08:00
|
|
|
<% if User.current != user %>
|
|
|
|
<div class="add_cancel_watch_<%= user.id %>">
|
|
|
|
<%= render :partial => 'users/watch_btn_for_picture', :locals => {:user => user} %>
|
|
|
|
</div>
|
|
|
|
<!--<a href="javascript:void(0);" class="userFollow mr27 fl">添加关注</a> <a href="javascript:void(0);" class="userCancel mr27 fl" style="display:none;">取消关注</a>-->
|
2016-03-10 12:47:10 +08:00
|
|
|
<%= link_to "留言", feedback_url_in_org(user.id), :class => 'greyBtn fr', :target => "_blank" %>
|
|
|
|
<%= link_to "私信", feedback_url_in_org(user.id), :class => 'greyBtn fr', :style => 'margin-right:20px;', :target => "_blank" %>
|
2016-01-08 14:12:55 +08:00
|
|
|
<!--<a href="javascript:void(0);" class="greyBtn fl">私信</a><a href="javascript:void(0);" class="greyBtn fr">留言</a> -->
|
|
|
|
<% end %>
|
2016-01-07 10:10:24 +08:00
|
|
|
</div>
|
|
|
|
<em></em>
|
2016-01-08 14:12:55 +08:00
|
|
|
<font></font>
|
2016-01-07 10:10:24 +08:00
|
|
|
</div>
|