MS fixing pagination numbers and couple of other things
This commit is contained in:
parent
2ce4fb27fa
commit
3cf7938028
3 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ class GroupsController < ApplicationController
|
|||
respond_to :json, :only => :show
|
||||
|
||||
def index
|
||||
@posts = current_user.visible_posts(:by_members_of => :all).paginate :page => params[:page], :order => 'created_at DESC'
|
||||
@posts = current_user.visible_posts(:by_members_of => :all).paginate :page => params[:page], :per_page => 15, :order => 'created_at DESC'
|
||||
@group = :all
|
||||
end
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ class GroupsController < ApplicationController
|
|||
def show
|
||||
@group = Group.find_by_id params[:id]
|
||||
@friends = @group.people
|
||||
@posts = current_user.visible_posts( :by_members_of => @group ).paginate :order => 'created_at DESC'
|
||||
@posts = current_user.visible_posts( :by_members_of => @group ).paginate :per_page => 15, :order => 'created_at DESC'
|
||||
|
||||
respond_with @group
|
||||
end
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ a {
|
|||
#flash_notice,
|
||||
#flash_error,
|
||||
#flash_alert {
|
||||
z-index: 3;
|
||||
z-index: 100;
|
||||
top: 32px;
|
||||
position: absolute;
|
||||
color: black;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ a
|
|||
#flash_notice,
|
||||
#flash_error,
|
||||
#flash_alert
|
||||
:z-index 3
|
||||
:z-index 100
|
||||
:top 32px
|
||||
:position absolute
|
||||
:color #000
|
||||
|
|
|
|||
Loading…
Reference in a new issue