Endless event loading for dsahboard
This commit is contained in:
parent
860fa1163a
commit
a69fc5dd23
5 changed files with 10 additions and 8 deletions
|
@ -10,9 +10,10 @@
|
|||
add new key
|
||||
to your profile
|
||||
- if @events.any?
|
||||
= render @events
|
||||
.content_list= render @events
|
||||
- else
|
||||
%h4.nothing_here_message Projects activity will be displayed here
|
||||
.loading.hide
|
||||
.side
|
||||
= render "events/event_last_push", :event => @last_push
|
||||
.projects_box
|
||||
|
@ -54,3 +55,7 @@
|
|||
New Project »
|
||||
- else
|
||||
If you will be added to project - it will be displayed here
|
||||
|
||||
|
||||
:javascript
|
||||
$(function(){ Pager.init(20); });
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
:plain
|
||||
$(".projects .activities").append("#{escape_javascript(render(@events))}");
|
||||
Pager.append(#{@events.count}, "#{escape_javascript(render(@events))}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue