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/commons/_data.json.jbuilder
Normal file
3
app/views/commons/_data.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
json.data do
|
||||
json.id object.id
|
||||
end
|
||||
3
app/views/commons/_like.json.jbuilder
Normal file
3
app/views/commons/_like.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
unless @current_user.nil?
|
||||
json.liked by_user_liked?(message, @current_user)
|
||||
end
|
||||
2
app/views/commons/_success.json.jbuilder
Normal file
2
app/views/commons/_success.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.set! :status, 0
|
||||
json.set! :message, "响应成功"
|
||||
2
app/views/commons/delete.json.jbuilder
Normal file
2
app/views/commons/delete.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.partial! "commons/success"
|
||||
json.partial! "commons/data", object: @object
|
||||
2
app/views/commons/hidden.json.jbuilder
Normal file
2
app/views/commons/hidden.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.partial! "commons/success"
|
||||
json.partial! "commons/data", object: @object
|
||||
2
app/views/commons/unhidden.json.jbuilder
Normal file
2
app/views/commons/unhidden.json.jbuilder
Normal file
@@ -0,0 +1,2 @@
|
||||
json.partial! "commons/success"
|
||||
json.partial! "commons/data", object: @object
|
||||
Reference in New Issue
Block a user