|
|
@ -18,7 +18,6 @@
|
|
|
|
<% if homework.attachments.any?%>
|
|
|
|
<% if homework.attachments.any?%>
|
|
|
|
<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(homework.user), :class => "avatar"), user_path(homework.user), :class => "avatar" %></td> -->
|
|
|
|
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(homework.user), :class => "avatar")%></td>
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(homework.user), :class => "avatar")%></td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<table width="580px" border="0">
|
|
|
|
<table width="580px" border="0">
|
|
|
@ -28,7 +27,6 @@
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" valign="top"><strong><%= l(:label_bidding_user_studentcode) %> :<%= homework.user.user_extensions.student_id%></td>
|
|
|
|
<td colspan="2" valign="top"><strong><%= l(:label_bidding_user_studentcode) %> :<%= homework.user.user_extensions.student_id%></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" width="580px" >
|
|
|
|
<td colspan="2" width="580px" >
|
|
|
|
<% if (User.current == homework.user) || (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?',3,7, 9)).size >0) %>
|
|
|
|
<% if (User.current == homework.user) || (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?',3,7, 9)).size >0) %>
|
|
|
|