- <%= link_to image_tag(url_to_avatar(user), :class => "avatar"),
- user_path(user),
- :title => "#{user.name}" %> |
-
-
- <%= content_tag "div", link_to(user.name,user_path(user)), :class => "project_avatar_name" %>
- |
-
-
-
-
-
- <% unless user.memberships.empty? %>
- <% 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 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) %>
- |
-
- |
-
-