|
|
@ -89,6 +89,10 @@ module CoursesHelper
|
|
|
|
case category.category_type
|
|
|
|
case category.category_type
|
|
|
|
when "shixun_homework"
|
|
|
|
when "shixun_homework"
|
|
|
|
"/classrooms/#{course.id}/shixun_homework/#{category.id}"
|
|
|
|
"/classrooms/#{course.id}/shixun_homework/#{category.id}"
|
|
|
|
|
|
|
|
when "common_homework"
|
|
|
|
|
|
|
|
"/classrooms/#{course.id}/common_homework/#{category.id}"
|
|
|
|
|
|
|
|
when "group_homework"
|
|
|
|
|
|
|
|
"/classrooms/#{course.id}/group_homework/#{category.id}"
|
|
|
|
when "graduation"
|
|
|
|
when "graduation"
|
|
|
|
if category.name == "毕设选题"
|
|
|
|
if category.name == "毕设选题"
|
|
|
|
"/classrooms/#{course.id}/graduation_topics/#{category.course_module_id}"
|
|
|
|
"/classrooms/#{course.id}/graduation_topics/#{category.course_module_id}"
|
|
|
@ -107,6 +111,10 @@ module CoursesHelper
|
|
|
|
case category.category_type
|
|
|
|
case category.category_type
|
|
|
|
when "shixun_homework"
|
|
|
|
when "shixun_homework"
|
|
|
|
get_homework_commons_count(course, 4, category.id)
|
|
|
|
get_homework_commons_count(course, 4, category.id)
|
|
|
|
|
|
|
|
when "common_homework"
|
|
|
|
|
|
|
|
get_homework_commons_count(course, 1, category.id)
|
|
|
|
|
|
|
|
when "group_homework"
|
|
|
|
|
|
|
|
get_homework_commons_count(course, 3, category.id)
|
|
|
|
when "graduation"
|
|
|
|
when "graduation"
|
|
|
|
if category.name == "毕设选题"
|
|
|
|
if category.name == "毕设选题"
|
|
|
|
course.graduation_topics_count
|
|
|
|
course.graduation_topics_count
|
|
|
|