diff --git a/app/views/student_work/_evaluation_un_group_title.html.erb b/app/views/student_work/_evaluation_un_group_title.html.erb
index d782fe7f..f3ca6649 100644
--- a/app/views/student_work/_evaluation_un_group_title.html.erb
+++ b/app/views/student_work/_evaluation_un_group_title.html.erb
@@ -50,11 +50,11 @@
<%= student_work.group_id == 0 ? '--' : '分组'+student_work.group_id.to_s %>
<% if @homework.homework_detail_group.base_on_project == 1 %>
-
+ |
<% 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 %>
<%= project.name %>
<% else %>
diff --git a/public/stylesheets/educoder/edu-all.css b/public/stylesheets/educoder/edu-all.css
index 24d992c9..c550bac6 100644
--- a/public/stylesheets/educoder/edu-all.css
+++ b/public/stylesheets/educoder/edu-all.css
@@ -3423,4 +3423,7 @@ line-height: 16px;display: inline-block;color: rgba(65, 140, 205, 1) !important;
}
.width698{
width: 698px;
+}
+.inlineblock{
+ display:inline-block;
}
\ No newline at end of file
From b3fe83f61b17dc8aa394e3d71578c16bf2fb2966 Mon Sep 17 00:00:00 2001
From: cxt <853663049@qq.com>
Date: Wed, 3 Jul 2019 11:34:05 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/student_work/_evaluation_un_group_title.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/student_work/_evaluation_un_group_title.html.erb b/app/views/student_work/_evaluation_un_group_title.html.erb
index d782fe7f..45756245 100644
--- a/app/views/student_work/_evaluation_un_group_title.html.erb
+++ b/app/views/student_work/_evaluation_un_group_title.html.erb
@@ -36,7 +36,7 @@
<%= student_work.user.show_real_name %>
|
<% 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) %>
<%= group_name %>
|