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.
10 lines
410 B
10 lines
410 B
json.array! subjects do |subject|
|
|
json.id subject.id
|
|
json.image_url url_to_avatar(subject)
|
|
json.name subject.name
|
|
json.tag_name subject.repertoire.try(:name)
|
|
json.stages_count subject.stages_count
|
|
json.shixuns_count subject.shixuns_count
|
|
json.members_count subject.member_count
|
|
json.allow_visit subject.status > 1 || User.current.manager_of_subject?(subject) || User.current.admin?
|
|
end |