修改当作业提交大于等于2份时才显示开启匿评按钮
This commit is contained in:
parent
13bf91f954
commit
ca7b56cbf0
|
@ -75,7 +75,7 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
<% if (User.current.admin?||User.current.id==bid.author_id) %>
|
||||
<% if bid.open_anonymous_evaluation == 1%>
|
||||
<% if bid.open_anonymous_evaluation == 1 && bid.homeworks.count >= 2%>
|
||||
<span id="<%=bid.id %>_anonymous_comment" class="span_wping">
|
||||
<% case bid.comment_status %>
|
||||
<% when 0 %>
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
<% if (User.current.admin?||User.current.id==@bid.author_id) %>
|
||||
<tr>
|
||||
<td valign="top" style="padding-left: 8px; font-size: 15px" colspan="2">
|
||||
<% if @bid.open_anonymous_evaluation == 1%>
|
||||
<% if @bid.open_anonymous_evaluation == 1 && @bid.homeworks.count >= 2%>
|
||||
<span id="<%=@bid.id %>_anonymous_comment" class="span_wping">
|
||||
<% case @bid.comment_status %>
|
||||
<% when 0 %>
|
||||
|
|
Loading…
Reference in New Issue