From 35a0f07d9f553fb96ec0f3391f192939b647b47d Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Sat, 4 Jul 2015 11:07:21 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E5=BC=80=E5=90=AF=E5=8C=BF=E8=AF=84?=
=?UTF-8?q?=E4=BD=9C=E4=B8=9A=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=AF=BC=E5=87=BA?=
=?UTF-8?q?=E7=BC=BA=E8=AF=84=E3=80=82=E5=8C=BF=E8=AF=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/student_work/index.html.erb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb
index c5bc5858d..c00e28375 100644
--- a/app/views/student_work/index.html.erb
+++ b/app/views/student_work/index.html.erb
@@ -69,8 +69,8 @@
winrar
工具进行解压
- <%= link_to "匿评", evaluation_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'down_btn fr'%>
- <%= link_to "缺评", absence_penalty_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'down_btn fr'%>
+ <%= link_to("匿评", evaluation_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'down_btn fr') if @homework.homework_type == 1%>
+ <%= link_to("缺评", absence_penalty_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'down_btn fr') if @homework.homework_type == 1%>
<%= link_to l(:label_list), student_work_index_path(:homework => @homework.id,:order => @order, :sort => @b_sort, :name => @name, :format => 'xls'),:class=>'down_btn fr'%>
导出全部: