mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-10 23:09:51 +08:00
init project
This commit is contained in:
15
app/views/users/private_message_details/show.json.jbuilder
Normal file
15
app/views/users/private_message_details/show.json.jbuilder
Normal file
@@ -0,0 +1,15 @@
|
||||
json.count @count
|
||||
json.target do
|
||||
json.partial! 'users/user_simple', user: target_user
|
||||
end
|
||||
json.messages do
|
||||
json.array! @messages.each do |message|
|
||||
json.extract! message, :id, :user_id, :receiver_id, :sender_id, :content
|
||||
|
||||
json.send_time message.display_send_time
|
||||
json.send_day message.send_time.strftime('%Y-%m-%d')
|
||||
json.sender do
|
||||
json.partial! 'users/user_simple', user: message.sender
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user