Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_course
daiao 5 years ago
commit d3ea1bf63e

@ -23,8 +23,8 @@ class FilesController < ApplicationController
get_category(@course, course_second_category_id) get_category(@course, course_second_category_id)
@total_count = @attachments.size @total_count = @attachments.size
@public_count = @attachments.publiced.size @publish_count = @attachments.published.size
@private_count = @total_count - @public_count @unpublish_count = @total_count - @publish_count
@attachments = @attachments.by_keywords(params[:search]) @attachments = @attachments.by_keywords(params[:search])
@attachments = @attachments =

@ -3,8 +3,8 @@ json.data do
json.id @category_id json.id @category_id
json.name @category_name json.name @category_name
json.total_count @total_count json.total_count @total_count
json.public_count @public_count json.publish_count @publish_count
json.private_count @private_count json.unpublish_count @unpublish_count
json.course_is_public @course.is_public? json.course_is_public @course.is_public?
json.files do json.files do
json.array! @attachments do |attachment| json.array! @attachments do |attachment|

Loading…
Cancel
Save