修复个人主页点击粉丝或者关注时,如果粉丝参加的课程和项目为0的bug;

This commit is contained in:
chenmin 2014-08-23 09:19:05 +08:00
parent 9e419876a9
commit 9f54df232b
1 changed files with 7 additions and 3 deletions

View File

@ -6,9 +6,9 @@
<li>
<table width="660px" border="0" align="center">
<tr>
<td colspan="2" valign="top" width="50"><%= link_to image_tag(url_to_avatar(user), :class => "avatar"),
user_path(user),
:title => "#{user.name}" %></td>
<td colspan="2" valign="top" width="50">
<%= link_to image_tag(url_to_avatar(user), :class => "avatar"),user_path(user),:title => "#{user.name}" %>
</td>
<td>
<table width="580px" border="0">
<tr> <!-- modified by bai -->
@ -27,6 +27,8 @@
<% for member in memberships %>
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : '' %>
<% end %>
<% else %>
<%= l(:label_x_contribute_to, :count => 0) %>
<% end %>
</p>
@ -38,6 +40,8 @@
<% for member in memberships %>
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : '' %>
<% end %>
<% else %>
<%= l(:label_x_course_contribute_to, :count => 0) %>
<% end %>
</p>
</td>