|
|
|
@ -36,7 +36,7 @@
|
|
|
|
|
<a href="/users/<%= (student_work.user.try(:login)) %>" class="color-grey3"><%= student_work.user.show_real_name %></a>
|
|
|
|
|
</td>
|
|
|
|
|
<% group_id = @members.select{|m|m.user_id==student_work.user_id}.first.try(:course_group_id) %>
|
|
|
|
|
<% group_name = group_id.to_i == 0 ? '未分班' : @course.course_groups.find_by_id(group_id).name %>
|
|
|
|
|
<% group_name = group_id.to_i == 0 ? '未分班' : @course.course_groups.find_by_id(group_id).try(:name) %>
|
|
|
|
|
<td title="<%= group_name %>">
|
|
|
|
|
<span class="task-hide" style="display: block;max-width: 120px;"><%= group_name %></span>
|
|
|
|
|
</td>
|
|
|
|
@ -50,11 +50,11 @@
|
|
|
|
|
<%= student_work.group_id == 0 ? '--' : '分组'+student_work.group_id.to_s %>
|
|
|
|
|
</td>
|
|
|
|
|
<% if @homework.homework_detail_group.base_on_project == 1 %>
|
|
|
|
|
<td class="student_score_info pr">
|
|
|
|
|
<td class="student_score_info pr inlineblock">
|
|
|
|
|
<% if student_work.project %>
|
|
|
|
|
<% project = student_work.project %>
|
|
|
|
|
<% if project.status != 9 && (project.is_public || User.current.member_of?(project) || @is_teacher) %>
|
|
|
|
|
<%= link_to project.name, project_path(project.id), :class => 'color-grey3 task-hide', :style => "max-width:120px;", :title => "项目名称", :target => "_blank" %>
|
|
|
|
|
<%= link_to project.name, project_path(project.id), :class => 'color-grey3 task-hide inlineblock', :style => "max-width:120px;", :title => "项目名称", :target => "_blank" %>
|
|
|
|
|
<% elsif project.status != 9 %>
|
|
|
|
|
<span class="task-hide" style="display: block; max-width:120px;" title="该项目是私有的"><%= project.name %></span>
|
|
|
|
|
<% else %>
|
|
|
|
|