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| %>
<% 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 @@
- <%=link_to homework.course.syllabus.title, syllabus_path(homework.course.syllabus_id), :class => 'hw_cgrey fl', :target => '_blank' %> - • - <%=link_to homework.course.name.to_s + "(#{current_time_and_term_short(homework.course)})", course_path(homework.course), :class => 'hw_cgrey fl mr15', :target => '_blank' %> +
+ <%=link_to homework.course.syllabus.title, syllabus_path(homework.course.syllabus_id), :class => 'hw_cgrey', :target => '_blank' %> + • + <%=link_to homework.course.name.to_s + "(#{current_time_and_term_short(homework.course)})", course_path(homework.course), :class => 'hw_cgrey', :target => '_blank' %>
- <% if type == "2" %> 贡献者: diff --git a/app/views/users/_manage_homework_list.html.erb b/app/views/users/_manage_homework_list.html.erb index 0354e558d..d9246f5ed 100644 --- a/app/views/users/_manage_homework_list.html.erb +++ b/app/views/users/_manage_homework_list.html.erb @@ -13,9 +13,11 @@来源: - <%=link_to homework.course.syllabus.title, syllabus_path(homework.course.syllabus_id), :class => 'hw_cgrey fl', :target => '_blank' %> - • - <%= link_to homework.course.name, course_path(homework.course), :target => '_blank', :class => 'hw_cgrey hw_classname fl mr15' %> + + <%=link_to homework.course.syllabus.title, syllabus_path(homework.course.syllabus_id), :class => 'hw_cgrey', :target => '_blank' %> + • + <%= link_to homework.course.name, course_path(homework.course), :target => '_blank', :class => 'hw_cgrey' %> + 类别:<%=homework.homework_type_ch %> 作品: <%=homework.student_works.has_committed.count %> diff --git a/app/views/users/_receive_homework_list.html.erb b/app/views/users/_receive_homework_list.html.erb index ea5c5ccbb..c0132b04b 100644 --- a/app/views/users/_receive_homework_list.html.erb +++ b/app/views/users/_receive_homework_list.html.erb @@ -13,9 +13,11 @@
来源: - <%=link_to homework.course.syllabus.title, syllabus_path(homework.course.syllabus_id), :class => 'hw_cgrey fl', :target => '_blank' %> - • - <%= link_to homework.course.name, course_path(homework.course), :target => '_blank', :class => 'hw_cgrey hw_classname fl mr15' %> + + <%=link_to homework.course.syllabus.title, syllabus_path(homework.course.syllabus_id), :class => 'hw_cgrey', :target => '_blank' %> + • + <%= link_to homework.course.name, course_path(homework.course), :target => '_blank', :class => 'hw_cgrey' %> + 类别:<%=homework.homework_type_ch %> <% my_work = cur_user_works_for_homework(homework) %> 状态:<%= my_work ? '已提交' : '未提交' %> diff --git a/app/views/users/manage_or_receive_homeworks.html.erb b/app/views/users/manage_or_receive_homeworks.html.erb index c16a33c02..45d3a022d 100644 --- a/app/views/users/manage_or_receive_homeworks.html.erb +++ b/app/views/users/manage_or_receive_homeworks.html.erb @@ -3,7 +3,7 @@ window.location.href = url; } -