mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-11 07:15:55 +08:00
init project
This commit is contained in:
6
app/views/users/videos/_video.json.jbuilder
Normal file
6
app/views/users/videos/_video.json.jbuilder
Normal file
@@ -0,0 +1,6 @@
|
||||
json.extract! video, :id, :title, :cover_url, :file_url, :play_url, :vv, :user_id
|
||||
|
||||
json.play_duration video.video_play_duration
|
||||
json.published_at video.display_published_at
|
||||
json.created_at video.display_created_at
|
||||
json.updated_at video.display_updated_at
|
||||
2
app/views/users/videos/index.json.jbuilder
Normal file
2
app/views/users/videos/index.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.count @count
|
||||
json.videos @videos, partial: 'video', as: :video
|
||||
7
app/views/users/videos/review.json.jbuilder
Normal file
7
app/views/users/videos/review.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
json.count @count
|
||||
json.videos do
|
||||
json.array! @videos.each do |video|
|
||||
json.partial! 'video', video: video
|
||||
json.file_url nil
|
||||
end
|
||||
end
|
||||
1
app/views/users/videos/update.json.jbuilder
Normal file
1
app/views/users/videos/update.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! 'video', video: current_video
|
||||
Reference in New Issue
Block a user