输入输出结果集只要老师才可以看到

This commit is contained in:
sw 2015-07-27 10:43:39 +08:00
parent 9a9658baf3
commit b94f5a54cc
2 changed files with 35 additions and 36 deletions

View File

@ -48,7 +48,7 @@
</div> </div>
<div class="cl"></div> <div class="cl"></div>
<% if homework.homework_type == 2 && homework.homework_detail_programing%> <% if homework.homework_type == 2 && homework.homework_detail_programing && @is_teacher%>
<table class="border_ce" cellpadding="0" cellspacing="0"> <table class="border_ce" cellpadding="0" cellspacing="0">
<tbody> <tbody>
<tr class="<%= cycle("", "b_grey") %>"> <tr class="<%= cycle("", "b_grey") %>">

View File

@ -24,6 +24,7 @@
<div class="cl"></div> <div class="cl"></div>
</li> </li>
<% if @is_teacher%>
<li ><span class="tit_fb ">测试结果:</span> <li ><span class="tit_fb ">测试结果:</span>
<table class="border_ce" cellpadding="0" cellspacing="0"> <table class="border_ce" cellpadding="0" cellspacing="0">
<tbody> <tbody>
@ -58,8 +59,6 @@
</table> </table>
<div class="cl"></div> <div class="cl"></div>
</li> </li>
<% if @is_teacher%>
<!-- 编程作业老师才可以评分 --> <!-- 编程作业老师才可以评分 -->
<div id="add_student_score_<%= @work.id%>" class="mt10 evaluation"> <div id="add_student_score_<%= @work.id%>" class="mt10 evaluation">
<%= render :partial => 'add_score',:locals => {:work => @work,:score => @score}%> <%= render :partial => 'add_score',:locals => {:work => @work,:score => @score}%>