|
|
|
@ -682,13 +682,13 @@ module CoursesHelper
|
|
|
|
|
url = joined ? join_path(:object_id => course.id) : try_join_path(:object_id => course.id)
|
|
|
|
|
method = joined ? 'delete' : 'post'
|
|
|
|
|
if joined
|
|
|
|
|
link = "<span class='pr_join_span' ><em class='pr_add'></em>#{l(:label_course_join_student)}</span>" + link_to(text, url, :remote => true, :method => method, :class => "pr_join_a", :id => "#{course.id}", :confirm => l(:text_are_you_sure_out))
|
|
|
|
|
link = "<span class='pr_join_span mr5' ><em class='pr_add'></em>#{l(:label_course_join_student)}</span>" + link_to(text, url, :remote => true, :method => method, :class => "pr_join_a", :id => "#{course.id}", :confirm => l(:text_are_you_sure_out))
|
|
|
|
|
else
|
|
|
|
|
link = link_to(text, url, :remote => true, :method => method, :id => "#{course.id}", :class => "pr_join_a") + "<span class='pr_join_span' ><em class='pr_arrow'></em>#{l(:label_course_exit_student)}</span>".html_safe
|
|
|
|
|
link = link_to(text, url, :remote => true, :method => method, :id => "#{course.id}", :class => "pr_join_a") + "<span class='pr_join_span mr5' ><em class='pr_arrow'></em>#{l(:label_course_exit_student)}</span>".html_safe
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
link = "<span class='pr_join_span' ><em class='pr_add'></em>#{l(:label_course_join_student)}</span>" +
|
|
|
|
|
"<span class='pr_join_span' ><em class='pr_arrow'></em>#{l(:label_course_exit_student)}</span>"
|
|
|
|
|
link = "<span class='pr_join_span mr5' ><em class='pr_add'></em>#{l(:label_course_join_student)}</span>" +
|
|
|
|
|
"<span class='pr_join_span mr5' ><em class='pr_arrow'></em>#{l(:label_course_exit_student)}</span>"
|
|
|
|
|
end
|
|
|
|
|
link.html_safe
|
|
|
|
|
end
|
|
|
|
@ -702,7 +702,7 @@ module CoursesHelper
|
|
|
|
|
when 1
|
|
|
|
|
link = link_to '关闭匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_stop_anonymous_comment", remote: true,:class => 'fr mr10 work_edit'
|
|
|
|
|
when 2
|
|
|
|
|
link = "<span class='fr mr10 pr_join_span ' title='匿评结束'>匿评结束</span>".html_safe
|
|
|
|
|
link = "<span class='fr pr_join_span mr10' title='匿评结束'>匿评结束</span>".html_safe
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
link = "<span class='fr mr10 pr_join_span ' title='学生提交作业数大于2时才可以启动匿评'>启动匿评</span>".html_safe
|
|
|
|
|