修复个人主页点击粉丝或者关注时,如果粉丝参加的课程和项目为0的bug;
This commit is contained in:
parent
9e419876a9
commit
9f54df232b
|
@ -6,9 +6,9 @@
|
||||||
<li>
|
<li>
|
||||||
<table width="660px" border="0" align="center">
|
<table width="660px" border="0" align="center">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" valign="top" width="50"><%= link_to image_tag(url_to_avatar(user), :class => "avatar"),
|
<td colspan="2" valign="top" width="50">
|
||||||
user_path(user),
|
<%= link_to image_tag(url_to_avatar(user), :class => "avatar"),user_path(user),:title => "#{user.name}" %>
|
||||||
:title => "#{user.name}" %></td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<table width="580px" border="0">
|
<table width="580px" border="0">
|
||||||
<tr> <!-- modified by bai -->
|
<tr> <!-- modified by bai -->
|
||||||
|
@ -27,6 +27,8 @@
|
||||||
<% for member in memberships %>
|
<% for member in memberships %>
|
||||||
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= l(:label_x_contribute_to, :count => 0) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -38,6 +40,8 @@
|
||||||
<% for member in memberships %>
|
<% for member in memberships %>
|
||||||
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= l(:label_x_course_contribute_to, :count => 0) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue