diff --git a/app/views/users/_user_show.html.erb b/app/views/users/_user_show.html.erb index 0873f271..d6fa541c 100644 --- a/app/views/users/_user_show.html.erb +++ b/app/views/users/_user_show.html.erb @@ -1,7 +1,6 @@
<% for user in @users -%> - <% unless user.id == 1%> <% messages_count = user.messages.count %> <% messages_score = messages_count * 0.05%> @@ -51,15 +50,12 @@
- <% 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) ? '' : ',' %> + <%= link_to_project(member.project) %><%= (memberships.last == member) ? '' : ',' %> <% end %> - <% end %> -

<%# unless user.memberships.empty? %> <%# cond = Project.visible_condition(User.current) + " AND projects.project_type = 1" %> @@ -74,9 +70,8 @@ <%# end %>

- <%= user.changesets.count == 0 ? '' : "#{l(:label_x_total_commit, :count => user.changesets.count)}" %> + <%= l(:label_x_total_commit, :count => user.changesets.count) %>
<% end -%> - <% end -%> \ No newline at end of file