diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 2f29210f7..0bf0642dd 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -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"%> +
<%= 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" %> +
+
+ <%= 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))%> +
+
<% unless user.memberships.empty? %> <%= l(:label_contribute_to, :project_count => "#{user.memberships.count}") %> diff --git a/config/locales/zh.yml b/config/locales/zh.yml index b7f63410e..bca508b3e 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -1210,4 +1210,7 @@ zh: label_create_course: 创建课程 label_news: 新闻 label_milestone: 里程碑 - label_features: 特性 \ No newline at end of file + label_features: 特性 + label_has_praisers: 赞(%{count}) + label_has_watchers: 关注(%{count}) + label_has_fans: 粉丝(%{count}) \ No newline at end of file