mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
init project
This commit is contained in:
21
app/views/home/index.json.jbuilder
Normal file
21
app/views/home/index.json.jbuilder
Normal file
@@ -0,0 +1,21 @@
|
||||
json.images_url @images_url
|
||||
|
||||
json.reps @rep_list
|
||||
|
||||
json.shixuns do
|
||||
json.partial! 'shixuns/shixun', locals: {shixuns: @shixuns}
|
||||
end
|
||||
|
||||
json.subjects do
|
||||
json.partial! 'subjects/subject', locals: {subjects: @subjects}
|
||||
end
|
||||
|
||||
# if current_laboratory.main_site?
|
||||
# json.teachers do
|
||||
# json.partial! 'users/user_small', users: @tea_users
|
||||
# end
|
||||
#
|
||||
# json.students do
|
||||
# json.partial! 'users/user_small', users: @stu_users
|
||||
# end
|
||||
# end
|
||||
5
app/views/home/search.json.jbuilder
Normal file
5
app/views/home/search.json.jbuilder
Normal file
@@ -0,0 +1,5 @@
|
||||
json.keyword @fuzzy_searchs
|
||||
json.total_count @total_count
|
||||
json.shixuns do
|
||||
json.partial! 'shixuns/shixun', locals: {shixuns: @shixuns}
|
||||
end
|
||||
Reference in New Issue
Block a user