From de1708b8dfbac7eeaa9342ff222635cb58558958 Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 1 Sep 2015 16:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=A1=86=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=96=87=E5=AD=97=E7=B1=BB=E4=BC=BC=E4=BA=8E?= =?UTF-8?q?=E2=80=9C=E8=AF=B7=E9=80=89=E6=8B=A9=E5=8F=91=E5=B8=83=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E7=9A=84=E8=AF=BE=E7=A8=8B=E2=80=9D=EF=BC=8C=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=8D=B3=E5=BC=B9=E5=87=BA=E4=BE=9B=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=9A=84=E8=AF=BE=E7=A8=8B=E5=88=97=E8=A1=A8=EF=BC=8C=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E5=90=8D=E7=A7=B0=E5=90=8E=E8=BF=98=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BC=80=E8=AF=BE=E5=AD=A6=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/users_helper.rb | 2 +- app/views/users/_user_homework_form.html.erb | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index 3f3cacae3..b9f762f69 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -546,7 +546,7 @@ module UsersHelper type = [] user.courses.select{|c| user.allowed_to?(:as_teacher,c)}.each do |course| option = [] - option << course.name + option << course.name+"("+course.time.to_s+course.term+")" option << course.id type << option end diff --git a/app/views/users/_user_homework_form.html.erb b/app/views/users/_user_homework_form.html.erb index 7a9e55205..86b8d7af7 100644 --- a/app/views/users/_user_homework_form.html.erb +++ b/app/views/users/_user_homework_form.html.erb @@ -74,7 +74,11 @@
- +