default paginattion
This commit is contained in:
parent
ec0186a489
commit
5a03f4b01f
|
@ -4,7 +4,7 @@ class RepositoriesController < ApplicationController
|
||||||
before_filter :find_repository, :only => [:show, :destroy]
|
before_filter :find_repository, :only => [:show, :destroy]
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@projects = @repository.projects.recent
|
@projects = @repository.projects.recent.paginate :page => params[:page], :per_page => 30
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
|
|
@ -47,4 +47,6 @@
|
||||||
.actions-bar.wat-cf
|
.actions-bar.wat-cf
|
||||||
.actions
|
.actions
|
||||||
|
|
||||||
|
= will_paginate @projects
|
||||||
|
|
||||||
- content_for :sidebar, render(:partial => 'sidebar')
|
- content_for :sidebar, render(:partial => 'sidebar')
|
||||||
|
|
Loading…
Reference in New Issue