修复软件创客列表当用户姓名比较长时,用户姓名会被个人得分覆盖掉的BUG

This commit is contained in:
sw 2014-07-14 11:46:52 +08:00
parent 59a5541e45
commit 7a9b5156c9
2 changed files with 21 additions and 1214 deletions

View File

@ -33,21 +33,27 @@
<%= image_tag "/images/time_member.png", :class => "img_member_time"%> <%= image_tag "/images/time_member.png", :class => "img_member_time"%>
<div> <div>
<%= image_tag(url_to_avatar(user), :class => 'avatar') %> <table style="width: 100%;table-layout: fixed">
<%= content_tag "span", link_to_user(user), :class => "nomargin avatar_name" %> <tr>
<td rowspan="2" style="width: 60px;">
<!-- modified by bai --> <%= image_tag(url_to_avatar(user), :class => 'avatar') %>
<div style="position:relative;float:left;margin-top:-2px;margin-left: 160px"> </td>
<span style="color:#ec6300"> <td style="width: 200px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="<%= user.name %>">
<%= render :partial => 'users/user_score', :locals => {:user => user}%></span> <span style="position: relative;font-size: 16px;display:block; "><%= link_to_user(user) %></span>
</div> </td>
<!-- end --> <td>
</div> <span style="color:#ec6300">
<%= render :partial => 'users/user_score', :locals => {:user => user}%>
<div style="margin-top: 20px;margin-left:66px"> </span>
<%= l(:label_x_has_fans,:count=>user.watcher_users.count)%> </td>
<%= l(:label_has_watchers,:count=>User.watched_by(user.id).count) %> </tr>
<tr>
<td colspan="2">
<%= l(:label_x_has_fans,:count=>user.watcher_users.count)%>
<%= l(:label_has_watchers,:count=>User.watched_by(user.id).count) %>
</td>
</tr>
</table>
</div> </div>
<div class="user-bottom"> <div class="user-bottom">
<% cond = Project.visible_condition(User.current) + " AND projects.project_type <> 1" %> <% cond = Project.visible_condition(User.current) + " AND projects.project_type <> 1" %>

File diff suppressed because it is too large Load Diff