From 862bbd1a1fd636d48b4b215fa907f251d19f3df7 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 9 Sep 2016 15:49:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BA=A7=E5=90=8D=E7=A7=B0=E5=89=8D?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=BE=E7=A8=8B=E5=90=8D=EF=BC=8C=E4=B8=80?= =?UTF-8?q?=E7=B3=BB=E5=88=97=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gemfile | 4 ++-- app/views/courses/_recommendation.html.erb | 8 +++++--- app/views/courses/new.html.erb | 4 +++- app/views/layouts/new_base_user.html.erb | 2 ++ app/views/syllabuses/_syllabus_course_list.html.erb | 10 +++++----- app/views/syllabuses/new.html.erb | 2 +- app/views/users/_homework_repository_list.html.erb | 10 ++++------ app/views/users/_manage_homework_list.html.erb | 8 +++++--- app/views/users/_receive_homework_list.html.erb | 8 +++++--- app/views/users/manage_or_receive_homeworks.html.erb | 2 +- app/views/users/my_homeworks.html.erb | 2 +- public/stylesheets/css/structure.css | 4 ++++ public/stylesheets/syllabus.css | 2 +- 13 files changed, 39 insertions(+), 27 deletions(-) diff --git a/Gemfile b/Gemfile index 1305320cf..cbeade2a3 100644 --- a/Gemfile +++ b/Gemfile @@ -50,10 +50,10 @@ gem 'elasticsearch-model' gem 'elasticsearch-rails' #rails 3.2.22.2 bug - # gem "test-unit", "~>3.0" + gem "test-unit", "~>3.0" ### profile - # gem 'oneapm_rpm' + gem 'oneapm_rpm' group :development do gem 'grape-swagger' diff --git a/app/views/courses/_recommendation.html.erb b/app/views/courses/_recommendation.html.erb index ba60070d0..cb31db24f 100644 --- a/app/views/courses/_recommendation.html.erb +++ b/app/views/courses/_recommendation.html.erb @@ -4,9 +4,11 @@ <% exc_course.each_with_index do |e_course, i| %>
  • <%= i+1 %> - <%= link_to e_course.syllabus.title, syllabus_path(e_course.syllabus_id), :target => '_blank', :class => "sy_class_ltitle fl"%> -  ·  - <%=link_to e_course.name, course_path(e_course.id), :class => "sy_class_ltitle fl mb10" %> +
    + <%= link_to e_course.syllabus.title, syllabus_path(e_course.syllabus_id), :target => '_blank', :class => "sy_class_ltitle"%> +  ·  + <%=link_to e_course.name, course_path(e_course.id), :class => "sy_class_ltitle mb10" %> +

    <% homework_count = e_course.homework_commons.where("publish_time <= '#{Date.today}'").count %> diff --git a/app/views/courses/new.html.erb b/app/views/courses/new.html.erb index 6870b7618..4c4374a29 100644 --- a/app/views/courses/new.html.erb +++ b/app/views/courses/new.html.erb @@ -21,6 +21,8 @@

  • +
  • 正确示例:计算机系2016秋季A班
  • +
  • 错误示例:软件工程 - 计算机系2016秋季A班
  • @@ -73,7 +75,7 @@ (选中后允许学生上传班级资源,否则不允许)
  • -
  • +
  • 提交 <%= link_to "取消",user_activities_path(User.current.id),:class => "grey_btn fl c_white ml10"%>
    diff --git a/app/views/layouts/new_base_user.html.erb b/app/views/layouts/new_base_user.html.erb index 1127288ae..b9ca67362 100644 --- a/app/views/layouts/new_base_user.html.erb +++ b/app/views/layouts/new_base_user.html.erb @@ -163,6 +163,7 @@