You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/graduation_topics/_topics.json.jbuilder

9 lines
413 B

6 years ago
json.array! topics do |topic|
task_private = course_identity > Course::STUDENT && !topic.is_public
json.private_icon task_private
json.(topic, :id, :name, :status)
json.author topic.teacher.full_name
json.user_topic_status topic.user_status(current_user)
json.selected_count topic.student_graduation_topics.count
json.confirmation_count topic.student_graduation_topics.confirmation_count
end