mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
init project
This commit is contained in:
3
app/views/files/_course_groups.json.jbuilder
Normal file
3
app/views/files/_course_groups.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
json.course_groups do
|
||||
json.array! attachment_group_settings, partial: 'course_groups/course_group', as: :attachment_group_setting
|
||||
end
|
||||
0
app/views/files/_tag.json.jbuilder
Normal file
0
app/views/files/_tag.json.jbuilder
Normal file
3
app/views/files/_tags_list.json.jbuilder
Normal file
3
app/views/files/_tags_list.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
json.tags do
|
||||
json.array! tags, :id, :name
|
||||
end
|
||||
1
app/views/files/bulk_delete.json.jbuilder
Normal file
1
app/views/files/bulk_delete.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "commons/success"
|
||||
1
app/views/files/bulk_move.json.jbuilder
Normal file
1
app/views/files/bulk_move.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "commons/success"
|
||||
1
app/views/files/bulk_public.json.jbuilder
Normal file
1
app/views/files/bulk_public.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "commons/success"
|
||||
1
app/views/files/bulk_send.json.jbuilder
Normal file
1
app/views/files/bulk_send.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "commons/success"
|
||||
3
app/views/files/histories.json.jbuilder
Normal file
3
app/views/files/histories.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
json.partial! 'attachments/attachment_small', attachment: @file
|
||||
json.partial! "attachment_histories/list", attachment_histories: @attachment_histories
|
||||
1
app/views/files/import.json.jbuilder
Normal file
1
app/views/files/import.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "commons/success"
|
||||
22
app/views/files/index.json.jbuilder
Normal file
22
app/views/files/index.json.jbuilder
Normal file
@@ -0,0 +1,22 @@
|
||||
json.partial! "commons/success"
|
||||
json.data do
|
||||
json.id @category_id
|
||||
json.name @category_name
|
||||
json.total_count @total_count
|
||||
json.publish_count @publish_count
|
||||
json.unpublish_count @unpublish_count
|
||||
json.course_is_public @course.is_public?
|
||||
json.files do
|
||||
json.array! @attachments do |attachment|
|
||||
json.is_history_file attachment.attachment_histories.count > 0 #是否有历史文件
|
||||
json.partial! "attachments/attachment", attachment: attachment
|
||||
json.author do
|
||||
json.partial! "users/user_simple", user: attachment.author
|
||||
end
|
||||
# json.partial! "files/course_groups", attachment_group_settings: attachment.attachment_group_settings
|
||||
if @course_second_category_id.to_i == 0
|
||||
json.category_name attachment.course_second_category&.name
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
12
app/views/files/mine_with_course_and_project.json.jbuilder
Normal file
12
app/views/files/mine_with_course_and_project.json.jbuilder
Normal file
@@ -0,0 +1,12 @@
|
||||
json.partial! "commons/success"
|
||||
json.data do
|
||||
json.total_count @total_count
|
||||
json.files do
|
||||
json.array! @attachments do |attachment|
|
||||
json.partial! "attachments/attachment_small", attachment: attachment
|
||||
json.author do
|
||||
json.partial! "users/user_simple", user: @current_user
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
12
app/views/files/public_with_course_and_project.json.jbuilder
Normal file
12
app/views/files/public_with_course_and_project.json.jbuilder
Normal file
@@ -0,0 +1,12 @@
|
||||
json.partial! "commons/success"
|
||||
json.data do
|
||||
json.total_count @total_count
|
||||
json.files do
|
||||
json.array! @attachments do |attachment|
|
||||
json.partial! "attachments/attachment_small", attachment: attachment
|
||||
json.author do
|
||||
json.partial! "users/user_simple", user: attachment.author
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
3
app/views/files/show.json.jbuilder
Normal file
3
app/views/files/show.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
json.partial! 'attachments/attachment', attachment: @file
|
||||
json.partial! "files/course_groups", attachment_group_settings: @file.attachment_group_settings
|
||||
json.partial! "attachment_histories/list", attachment_histories: @attachment_histories
|
||||
1
app/views/files/update.json.jbuilder
Normal file
1
app/views/files/update.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "commons/success"
|
||||
1
app/views/files/upload.json.jbuilder
Normal file
1
app/views/files/upload.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "commons/success"
|
||||
Reference in New Issue
Block a user