|
|
|
@ -82,8 +82,7 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
@task_count = @homework_commons.size
|
|
|
|
|
|
|
|
|
|
@homework_commons = @homework_commons.order("IF(ISNULL(homework_commons.publish_time),0,1), homework_commons.publish_time DESC,
|
|
|
|
|
homework_commons.created_at DESC").page(page).per(15)
|
|
|
|
|
@homework_commons = @homework_commons.order("position DESC").page(page).per(15)
|
|
|
|
|
|
|
|
|
|
if @homework_type == 4
|
|
|
|
|
@homework_commons = @homework_commons.includes(:homework_detail_manual, :published_settings, :shixuns)
|
|
|
|
|