socialforge/app/views/users/_show_detail_info.html.erb

38 lines
2.0 KiB
Plaintext
Raw Normal View History

<div class="userCard boxShadow">
<div class="userAvatarWrap fl">
<%= image_tag(url_to_avatar(user), :width => "50", :height => "50") %>
<!--<img src="images/homepageImage.jpg" width="50" height="50" alt="个人头像" />-->
</div>
<div class="fl ml15">
<p class="homepageImageName mb5" style="max-width:88px;"><%= user %></p><span class="fb f14"><%#= user.show_name %></span>
<span class="homepageImageSex"></span>
<div class="cl"></div>
<p class="mb8 c_dark f14"><%= user.user_extensions.technical_title %></p>
</div>
<div class="cl"></div>
<div>
<div class="homepageImageBlock mb10">
<div><a href="javascript:void(0);" class="homepageImageNumber"><%= User.watched_by(user.id).count %></a></div>
<div class="homepageImageText">关注</div>
</div>
<div class="homepageVerDiv"></div>
<div class="homepageImageBlock">
<div><a href="javascript:void(0);" class="homepageImageNumber fans_count_<%= user.id %>"><%= user.watcher_users.count %></a></div>
<div class="homepageImageText">粉丝</div>
</div>
<div class="homepageVerDiv"></div>
<div class="homepageImageBlock">
<div><a href="javascript:void(0);" class="homepageImageNumber"><%= user.blog.blog_comments.where("#{BlogComment.table_name}.parent_id is null").count %></a></div>
<div class="homepageImageText">博客</div>
</div>
<div class="cl"></div>
<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 fl', :target => "_blank" %>
<%= link_to "留言", feedback_path(user), :class => 'greyBtn fr', :target => "_blank" %>
<!--<a href="javascript:void(0);" class="greyBtn fl">私信</a><a href="javascript:void(0);" class="greyBtn fr">留言</a> -->
</div>
<em></em>
</div>