From b6b479f6f9c0d63c3cd8de5e7177250891cf8bc3 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 20 Mar 2015 11:37:56 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=8C=BF=E8=AF=84=E6=97=B6=E5=BC=B9=E6=A1=86?= =?UTF-8?q?=202=E3=80=81=E5=A2=9E=E5=8A=A0js=E8=B0=83=E7=94=A8=E6=98=AF?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/courses_helper.rb | 6 +++--- app/views/bids/_alert_anonyoms.html.erb | 10 ---------- app/views/courses/homework.html.erb | 22 ++++++++++++---------- app/views/layouts/base_courses.html.erb | 11 ++++++++--- public/javascripts/course.js | 5 +++++ public/stylesheets/public.css | 25 +++++++++++++++++++++++++ 6 files changed, 53 insertions(+), 26 deletions(-) diff --git a/app/helpers/courses_helper.rb b/app/helpers/courses_helper.rb index 6c2543db7..62879f010 100644 --- a/app/helpers/courses_helper.rb +++ b/app/helpers/courses_helper.rb @@ -698,11 +698,11 @@ module CoursesHelper case bid.comment_status when 0 # 关闭匿评 - link_to '启动匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_start_anonymous_comment", remote: true, disable_with: '加载中...' + link_to '启动匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_start_anonymous_comment", remote: true, disable_with: '加载中...',:class => 'fr mr10 work_edit' when 1 - link_to '关闭匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_stop_anonymous_comment", remote: true + link_to '关闭匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_stop_anonymous_comment", remote: true,:class => 'fr mr10 work_edit' when 2 - # 匿评结束 + "匿评结束".html_safe end end end diff --git a/app/views/bids/_alert_anonyoms.html.erb b/app/views/bids/_alert_anonyoms.html.erb index f26487126..f0bec4d30 100644 --- a/app/views/bids/_alert_anonyoms.html.erb +++ b/app/views/bids/_alert_anonyoms.html.erb @@ -3,16 +3,6 @@ 开启匿评功能