From 1fb4b810519ae359273b7986c40faa3f4b5c2138 Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Tue, 25 Nov 2014 16:09:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: alan <547533434@qq.com> --- public/stylesheets/application.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 6cbd8bc7d..5a6e973d6 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -2220,7 +2220,7 @@ button.tab-right { } #content .tabs_new ul li a.selected { - background-color: rgba(28, 158, 199, 0.68); + background-color: #1C9EC7; border: 1px solid #15BCCF; border-bottom: 1px solid #fff; color:#FFF; From 1fee210924eeb92a59a0e9fa885b82a7fd95bf5e Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Tue, 25 Nov 2014 16:51:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E3=80=81=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E3=80=81=E5=8F=96=E6=B6=88=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=202.=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A=E6=97=B6=E5=85=B3?= =?UTF-8?q?=E8=81=94=E9=A1=B9=E7=9B=AE=E4=BC=9A=E8=87=AA=E5=8A=A8=E6=B8=85?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/homework_attach_controller.rb | 11 +---------- app/views/homework_attach/edit.html.erb | 4 ++-- app/views/homework_attach/new.html.erb | 4 ++-- public/stylesheets/css.css | 2 +- 4 files changed, 6 insertions(+), 15 deletions(-) diff --git a/app/controllers/homework_attach_controller.rb b/app/controllers/homework_attach_controller.rb index a9adc9ec6..ff6463036 100644 --- a/app/controllers/homework_attach_controller.rb +++ b/app/controllers/homework_attach_controller.rb @@ -331,18 +331,9 @@ class HomeworkAttachController < ApplicationController if User.current.admin? || User.current.member_of_course?(course) name = params[:homework_name] description = params[:homework_description] - if params[:homework_attach] - if params[:homework_attach][:project_id] - project_id = params[:homework_attach][:project_id] - else - project_id = 0 - end - else - project_id = 0 - end @homework.name = name @homework.description = description - @homework.project_id = project_id + @homework.project_id = params[:project_id] || 0 if params[:attachments] @homework.save_attachments(params[:attachments]) end diff --git a/app/views/homework_attach/edit.html.erb b/app/views/homework_attach/edit.html.erb index 92a72acd4..cfe4bf097 100644 --- a/app/views/homework_attach/edit.html.erb +++ b/app/views/homework_attach/edit.html.erb @@ -41,13 +41,13 @@
    -
  • +
  • 修改作业
  • 成员
  • -
  • +
  • <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, diff --git a/app/views/homework_attach/new.html.erb b/app/views/homework_attach/new.html.erb index 5a512c800..c843482a9 100644 --- a/app/views/homework_attach/new.html.erb +++ b/app/views/homework_attach/new.html.erb @@ -41,10 +41,10 @@
      -
    • +
    • 创建作品
    • -
    • +
    • <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, diff --git a/public/stylesheets/css.css b/public/stylesheets/css.css index b382b6d46..e49f2651f 100644 --- a/public/stylesheets/css.css +++ b/public/stylesheets/css.css @@ -130,7 +130,7 @@ a:hover.ping_sub{ background:#14a8b9;} .w350{ width:350px;} .w620{ width:580px; height:160px; border:1px solid #CCC !important; padding-left: 3px !important;} .bo{height:26px; border:1px solid #CCC !important; padding: 0 !important;} -a.tijiao{ height:28px !important; display:block !important; width:80px !important; color:#fff !important; background:#15bccf !important; text-align:center !important; padding-top:4px !important; float:left !important; margin-right:10px !important;} +a.tijiao{ height:28px !important; display:block !important; width:80px !important; color:#fff !important; background:#15bccf !important; text-align:center !important; padding-top:4px !important; float:left !important; margin-right:10px !important;line-height: 1.9;} a:hover.tijiao{ background:#0f99a9 !important;} .members_left{ float:left; width:570px; margin-right:20px;} .members_left{}