parent
b492ead0c0
commit
bc9f1e5a01
|
@ -1,7 +1,6 @@
|
||||||
<!-- added by bai -->
|
<!-- added by bai -->
|
||||||
<div class="autoscroll">
|
<div class="autoscroll">
|
||||||
<% for user in @users -%>
|
<% for user in @users -%>
|
||||||
<% unless user.id == 1%>
|
|
||||||
<!-- added by bai -->
|
<!-- added by bai -->
|
||||||
<% messages_count = user.messages.count %>
|
<% messages_count = user.messages.count %>
|
||||||
<% messages_score = messages_count * 0.05%>
|
<% messages_score = messages_count * 0.05%>
|
||||||
|
@ -51,15 +50,12 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="user-bottom">
|
<div class="user-bottom">
|
||||||
<% unless user.memberships.empty? %>
|
|
||||||
<% cond = Project.visible_condition(User.current) + " AND projects.project_type <> 1" %>
|
<% cond = Project.visible_condition(User.current) + " AND projects.project_type <> 1" %>
|
||||||
<% memberships = user.memberships.all(:conditions => cond) %>
|
<% memberships = user.memberships.all(:conditions => cond) %>
|
||||||
<%= l(:label_x_contribute_to, :count => memberships.count) %>
|
<%= l(:label_x_contribute_to, :count => memberships.count) %>
|
||||||
<% for member in memberships %>
|
<% for member in memberships %>
|
||||||
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
<%= link_to_project(member.project) %><%= (memberships.last == member) ? '' : ',' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<%# unless user.memberships.empty? %>
|
<%# unless user.memberships.empty? %>
|
||||||
<%# cond = Project.visible_condition(User.current) + " AND projects.project_type = 1" %>
|
<%# cond = Project.visible_condition(User.current) + " AND projects.project_type = 1" %>
|
||||||
|
@ -74,9 +70,8 @@
|
||||||
<%# end %>
|
<%# end %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<%= user.changesets.count == 0 ? '' : "#{l(:label_x_total_commit, :count => user.changesets.count)}" %>
|
<%= l(:label_x_total_commit, :count => user.changesets.count) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end -%>
|
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue