Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
0261b0c6
Commit
0261b0c6
authored
Sep 26, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project activity inifinite scroll paging
parent
16e67fd8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+2
-1
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+4
-0
app/views/projects/show.js.haml
app/views/projects/show.js.haml
+2
-0
No files found.
app/controllers/projects_controller.rb
View file @
0261b0c6
...
...
@@ -46,7 +46,7 @@ class ProjectsController < ApplicationController
def
show
limit
=
(
params
[
:limit
]
||
20
).
to_i
@events
=
@project
.
events
.
recent
.
limit
(
limit
)
@events
=
@project
.
events
.
recent
.
limit
(
limit
)
.
offset
(
params
[
:offset
]
||
0
)
respond_to
do
|
format
|
format
.
html
do
...
...
@@ -57,6 +57,7 @@ class ProjectsController < ApplicationController
render
"projects/empty"
end
end
format
.
js
end
end
...
...
app/views/projects/show.html.haml
View file @
0261b0c6
...
...
@@ -2,3 +2,7 @@
=
render
'clone_panel'
=
render
"events/event_last_push"
,
event:
@last_push
.content_list
=
render
@events
.loading.hide
:javascript
$
(
function
(){
Pager
.
init
(
20
);
});
app/views/projects/show.js.haml
0 → 100644
View file @
0261b0c6
:plain
Pager.append(
#{
@events
.
count
}
, "
#{
escape_javascript
(
render
(
@events
))
}
");
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment