|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
height: 200px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<% is_student = is_cur_course_student? @homework.bid.courses.first %>
|
|
|
|
|
<% is_student = is_cur_course_student @homework.bid.courses.first %>
|
|
|
|
|
<% is_teacher = is_course_teacher User.current,@homework.bid.courses.first %>
|
|
|
|
|
<p id="notice"><%= notice %></p>
|
|
|
|
|
<!-- <%= image_tag(url_to_avatar(@user), :class => "avatar2") %> -->
|
|
|
|
@ -23,7 +23,16 @@
|
|
|
|
|
<td style="width: 570px; padding-left:40px; word-wrap: break-word; word-break: break-all">
|
|
|
|
|
发布人员:<%= link_to @homework.user, user_path(@homework.user)%>
|
|
|
|
|
</td>
|
|
|
|
|
<td>发布时间:<%=format_time @homework.created_at %></td>
|
|
|
|
|
<td>
|
|
|
|
|
参与人员:
|
|
|
|
|
<% @homework.users.each do |homework_user| %>
|
|
|
|
|
<%= link_to homework_user, user_path(homework_user)%>
|
|
|
|
|
<% if @homework.users.count > 1 && homework_user != @homework.users.last %>
|
|
|
|
|
<br/>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-left: 40px">
|
|
|
|
@ -38,12 +47,12 @@
|
|
|
|
|
<td style="width: 240px; word-wrap: break-word; word-break: break-all">
|
|
|
|
|
所属任务:<%= link_to(@homework.bid.name, project_for_bid_path(@homework.bid))%>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-left: 40px" colspan="2">平均评分:
|
|
|
|
|
<td style="padding-left: 40px">平均评分:
|
|
|
|
|
<%= rating_for @homework, :static => true, dimension: :quality, class: 'rateable div_inline' %>
|
|
|
|
|
</td>
|
|
|
|
|
<td>发布时间:<%=format_time @homework.created_at %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|