- <%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :title => "#{user.name}" %> |
+
+ <%= link_to image_tag(url_to_avatar(user), :class => "avatar"),
+ user_path(user),
+ :title => "#{user.show_name}" %> |
- <%= content_tag "div", link_to_user(user), :class => "project_avatar_name" %>
+ <%= content_tag "div", link_to_user(user.show_name), :class => "project_avatar_name" ,
+ :title => "#{user.show_name}" %>
+
+
+ <%= l(:label_bidding_user_studentcode) %> :<%= user.user_extensions.student_id%>
|
|
+
<% unless user.memberships.empty? %>
- <%= l(:label_x_contribute_to, :count => user.memberships.count) %>
+ <% cond = Project.visible_condition(User.current) + "AND projects.project_type <> 1" %>
+ <% memberships = user.memberships.all(:conditions => cond) %>
+ <%= l(:label_x_contribute_to, :count => memberships.count) %>
<% for member in user.memberships %>
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
<% end %>
<% end %>
- |
+
+
+
+
+ <% unless user.memberships.empty? %>
+ <% cond = Project.visible_condition(User.current) + "AND projects.project_type = 1" %>
+ <% memberships = user.memberships.all(:conditions => cond) %>
+ <%= l(:label_x_course_contribute_to, :count => memberships.count) %>
+ <% for member in memberships %>
+ <%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
+ <% end %>
+ <% end %>
+
+
+
+
<%= l(:label_user_joinin) %><%= format_date(user.created_on) %>
|
diff --git a/app/views/users/user_fanslist.html.erb b/app/views/users/user_fanslist.html.erb
index 5a9e5b314..fb3a3f310 100644
--- a/app/views/users/user_fanslist.html.erb
+++ b/app/views/users/user_fanslist.html.erb
@@ -5,10 +5,12 @@
-
- <%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :title => "#{user.name}" %> |
+ <%= link_to image_tag(url_to_avatar(user), :class => "avatar"),
+ user_path(user),
+ :title => "#{user.name}" %> |
-
- <%= content_tag "div", link_to_user(user), :class => "project_avatar_name" %>
+
+ <%= content_tag "div", link_to_user(user.show_name), :class => "project_avatar_name" %>
|
diff --git a/app/views/users/user_watchlist.html.erb b/app/views/users/user_watchlist.html.erb
index bb6b40c6d..e93cd2c01 100644
--- a/app/views/users/user_watchlist.html.erb
+++ b/app/views/users/user_watchlist.html.erb
@@ -6,20 +6,35 @@
<%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :title => "#{user.name}" %> |
-
- <%= content_tag "div", link_to_user(user), :class => "project_avatar_name" %>
+
+ <%= content_tag "div", link_to_user(user.show_name), :class => "project_avatar_name" %>
|
-
+
<% unless user.memberships.empty? %>
- <%= l(:label_x_contribute_to, :count => user.memberships.count) %>
+ <% cond = Project.visible_condition(User.current) + "AND projects.project_type <> 1" %>
+ <% memberships = user.memberships.all(:conditions => cond) %>
+ <%= l(:label_x_contribute_to, :count => memberships.count) %>
<% for member in user.memberships %>
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
<% end %>
<% end %>
- |
+
+
+ <% unless user.memberships.empty? %>
+ <% cond = Project.visible_condition(User.current) + "AND projects.project_type = 1" %>
+ <% memberships = user.memberships.all(:conditions => cond) %>
+ <%= l(:label_x_course_contribute_to, :count => memberships.count) %>
+ <% for member in memberships %>
+ <%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
+ <% end %>
+ <% end %>
+
+
+
+
<%= l(:label_user_joinin) %><%= format_date(user.created_on) %>
|
| | | |
|