在用户列表添加粉丝、关注、赞的数字
This commit is contained in:
parent
5c6d8c1bcf
commit
6eff8c5045
|
@ -92,9 +92,16 @@
|
|||
<%= content_tag "p", "#{format_date(user.created_on)}#{l(:label_member_since)}", :class => "float_right member_since" %>
|
||||
<%= image_tag "/images/time_member.png", :class => "img_member_time"%>
|
||||
<!-- <%= get_avatar?(user) ? (link_to image_tag(avatar_image(user), :class => 'avatar'), user_path(user), :class => "avatar") : (link_to image_tag("/images/12_50.png", :class => 'avatar'), user_path(user), :class => "avatar") %> -->
|
||||
<div>
|
||||
<%= link_to image_tag(url_to_avatar(user), :class => 'avatar'), user_path(user) %>
|
||||
<%= content_tag "span", link_to_user(user), :class => "nomargin avatar_name" %>
|
||||
<%= content_tag "span", content_tag("p", user.firstname), :class => "clear avatar_name" %>
|
||||
</div>
|
||||
<div style="margin-top: 20px;margin-left:66px">
|
||||
<%= l(:label_has_fans,:count=>user.watcher_users.count)%>
|
||||
<%= l(:label_has_watchers,:count=>User.watched_by(user.id).count) %>
|
||||
<%= l(:label_has_praisers,:count=>get_praise_num(user))%>
|
||||
</div>
|
||||
<!--<%= content_tag "span", content_tag("p", user.firstname), :class => "clear avatar_name" %>-->
|
||||
<div class="user-bottom">
|
||||
<% unless user.memberships.empty? %>
|
||||
<%= l(:label_contribute_to, :project_count => "#{user.memberships.count}") %>
|
||||
|
|
|
@ -1211,3 +1211,6 @@ zh:
|
|||
label_news: 新闻
|
||||
label_milestone: 里程碑
|
||||
label_features: 特性
|
||||
label_has_praisers: 赞(%{count})
|
||||
label_has_watchers: 关注(%{count})
|
||||
label_has_fans: 粉丝(%{count})
|
Loading…
Reference in New Issue