45 lines
2.9 KiB
Plaintext
45 lines
2.9 KiB
Plaintext
<div class="userCard boxShadow" style="<%= User.current == user ? 'top:-153px;':'' %>">
|
|
<div class="userAvatarWrap fl">
|
|
<%= link_to image_tag(url_to_avatar(user), :width => "50", :height => "50"), user_path(user), :alt => "用户头像", :target => '_blank' %>
|
|
<%#= image_tag(url_to_avatar(user), :width => "50", :height => "50") %>
|
|
<!--<img src="images/homepageImage.jpg" width="50" height="50" alt="个人头像" />-->
|
|
</div>
|
|
<div class="fl">
|
|
<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>
|
|
<span class="homepageImageSex"></span>
|
|
<div class="cl"></div>
|
|
<p class="mb8 c_dark f14">
|
|
<span class="mr15 hidden fl ml15" style="max-width:90px;"><%= user.show_name %></span>
|
|
<%= user.user_extensions.technical_title %>
|
|
</p>
|
|
</div>
|
|
<div class="cl"></div>
|
|
<div>
|
|
<div class="homepageImageBlock mb10">
|
|
<div><%= link_to User.watched_by(user.id).count, {:controller=>"users", :action=>"user_watchlist",:id=>user.id}, :class => 'homepageImageNumber',:target => "_blank" %></div>
|
|
<div class="homepageImageText"><%= link_to '关注',{:controller=>"users", :action=>"user_watchlist",:id=>user.id},:target => "_blank" %></div>
|
|
</div>
|
|
<div class="homepageVerDiv"></div>
|
|
<div class="homepageImageBlock">
|
|
<div><%= link_to user.watcher_users.count,{:controller=>"users", :action=>"user_fanslist",:id=>user.id}, :class => "homepageImageNumber fans_count_#{user.id}",:target => "_blank" %></div>
|
|
<div class="homepageImageText"><%= link_to '粉丝', {:controller=>"users", :action=>"user_fanslist",:id=>user.id},:target => "_blank" %></div>
|
|
</div>
|
|
<div class="homepageVerDiv"></div>
|
|
<div class="homepageImageBlock">
|
|
<div><%= link_to user.blog.blog_comments.where("#{BlogComment.table_name}.parent_id is null").count, user_blogs_path(user), :class => 'homepageImageNumber',:target => "_blank" %></div>
|
|
<div class="homepageImageText"><%= link_to '博客', user_blogs_path(user),:target => "_blank" %></div>
|
|
</div>
|
|
<div class="cl"></div>
|
|
<% 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>-->
|
|
<%= link_to "留言", feedback_path(user), :class => 'greyBtn fr', :target => "_blank" %>
|
|
<%= link_to "私信", feedback_path(user), :class => 'greyBtn fr', :style => 'margin-right:20px;', :target => "_blank" %>
|
|
<!--<a href="javascript:void(0);" class="greyBtn fl">私信</a><a href="javascript:void(0);" class="greyBtn fr">留言</a> -->
|
|
<% end %>
|
|
</div>
|
|
<em></em>
|
|
<font></font>
|
|
</div> |