mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-04 04:03:25 +08:00
init project
This commit is contained in:
12
app/views/courses/course_groups.json.jbuilder
Normal file
12
app/views/courses/course_groups.json.jbuilder
Normal file
@@ -0,0 +1,12 @@
|
||||
json.course_groups @course_groups.each do |group|
|
||||
json.(group, :id, :course_members_count, :name, :invite_code_halt)
|
||||
json.invite_code group.invite_code if @user_course_identity < Course::STUDENT
|
||||
json.member_manager member_manager(group, @teachers) if @user_course_identity < Course::NORMAL
|
||||
json.edit_auth edit_auth(group, @teachers) if @user_course_identity < Course::STUDENT
|
||||
end
|
||||
|
||||
if @user_course_identity == Course::STUDENT
|
||||
json.current_group_id @current_group_id
|
||||
end
|
||||
json.none_group_member_count @course.none_group_count
|
||||
json.group_count @all_group_count
|
||||
Reference in New Issue
Block a user