This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Merge pull request '调整返回值' (
#124
) from KingChan/forgeplus:chenjing into standalone_develop
pull/338/head
KingChan
2 years ago
parent
cded93715d
1d220a6f13
commit
5a69e604b9
2 changed files
with
2 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app/controllers/site_pages_controller.rb
+1
-1
app/views/site_pages/index.json.jbuilder
+ 1
- 0
app/controllers/site_pages_controller.rb
View File
@@ -7,6 +7,7 @@ class SitePagesController < ApplicationController
def index
def index
pages = PageQuery.call(params,current_user)
pages = PageQuery.call(params,current_user)
@total_count = pages.size
@pages = paginate(pages)
@pages = paginate(pages)
end
end
+ 1
- 1
app/views/site_pages/index.json.jbuilder
View File
@@ -1,4 +1,4 @@
json.total_count @
pages.
total_count
json.total_count @total_count
json.pages @pages.each do |page|
json.pages @pages.each do |page|
json.partial! 'info', locals: {page: page}
json.partial! 'info', locals: {page: page}
end
end
Write
Preview
Loading…
Cancel
Save