|
|
|
@ -28,13 +28,15 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;width: 70px" >
|
|
|
|
|
<table style="text-align: center;width: 100%;table-layout: fixed">
|
|
|
|
|
<% user_name = is_teacher ? (homework.user.firstname + homework.user.lastname) : homework.user.login %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td title="<%= homework.user.name %>"><%= image_tag(url_to_avatar(homework.user), :class => "avatar")%></td>
|
|
|
|
|
<td title="<%= user_name %>"><%= image_tag(url_to_avatar(homework.user), :class => "avatar")%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td title="<%= homework.user.name %>">
|
|
|
|
|
|
|
|
|
|
<td title="<%= user_name %>">
|
|
|
|
|
<p style="width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"><strong>
|
|
|
|
|
<%= link_to (is_teacher ? homework.user.realname : homework.user ), user_path(homework.user),{:style => "color:#727272"} %>
|
|
|
|
|
<%= link_to user_name, user_path(homework.user),{:style => "color:#727272"} %>
|
|
|
|
|
</strong></p>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|