|
|
@ -12,6 +12,7 @@ json.allow_send @user.logged?
|
|
|
|
json.allow_visit @subject.status > 1 || @is_manager
|
|
|
|
json.allow_visit @subject.status > 1 || @is_manager
|
|
|
|
json.allow_add_member @is_manager
|
|
|
|
json.allow_add_member @is_manager
|
|
|
|
json.is_creator @is_creator
|
|
|
|
json.is_creator @is_creator
|
|
|
|
|
|
|
|
json.cover url_to_avatar(@subject)
|
|
|
|
|
|
|
|
|
|
|
|
if @subject.excellent
|
|
|
|
if @subject.excellent
|
|
|
|
json.has_start @subject.has_course_start?
|
|
|
|
json.has_start @subject.has_course_start?
|
|
|
|