111111111111111
This commit is contained in:
parent
3418c9ccee
commit
69d1fdb699
|
@ -692,4 +692,18 @@ module CoursesHelper
|
|||
end
|
||||
link.html_safe
|
||||
end
|
||||
|
||||
def bid_anonymous_comment bid
|
||||
if bid.open_anonymous_evaluation == 1 && bid.homeworks.count >= 2
|
||||
case bid.comment_status
|
||||
when 0
|
||||
# <a href="#" class="fr mr10 work_edit">关闭匿评</a>
|
||||
link_to '启动匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_start_anonymous_comment", remote: true, disable_with: '加载中...'
|
||||
when 1
|
||||
link_to '关闭匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_stop_anonymous_comment", remote: true
|
||||
when 2
|
||||
# <a href="#" style="background:#8e8e8e;">匿评结束</a>
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -16,8 +16,9 @@
|
|||
<span class="fl"> <%= l(:label_user_create_project_homework) %>:</span>
|
||||
<%= link_to(bid.name, course_for_bid_path(bid), :class => 'problem_tit fl fb c_dblue') %>
|
||||
<div class="cl mb5"></div>
|
||||
<p class="fl ">已提交的作业 (<%= link_to bid.homeworks.count, course_for_bid_path(bid.id), :class => 'c_red'%> )</p>
|
||||
<a href="#" class="fr mr10 work_edit">关闭匿评</a><a href="courses_hworkedit.html" class="fr mr10 work_edit">编辑</a>
|
||||
<p class="fl ">已提交的作业 ( <%= link_to bid.homeworks.count, course_for_bid_path(bid.id), :class => 'c_red'%> )</p>
|
||||
<a href="#" class="fr mr10 work_edit">关闭匿评</a>
|
||||
<a href="courses_hworkedit.html" class="fr mr10 work_edit">编辑</a>
|
||||
<div class="cl"></div>
|
||||
<p id="news_description" class="news_description mt5">项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题项目问题个数显示问题<br /> 创建时间 : 2014-11-26 10:19</p>
|
||||
<div class="news_foot" onclick="show_more_msg02();">展开更多信息 <span class="g-arr-down"><img src="images/jiantou.jpg" width="12" height="6" /></span></div>
|
||||
|
|
Loading…
Reference in New Issue