MS fixing pagination numbers and couple of other things

This commit is contained in:
maxwell 2010-09-08 20:51:46 -07:00
parent 2ce4fb27fa
commit 3cf7938028
3 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ class GroupsController < ApplicationController
respond_to :json, :only => :show respond_to :json, :only => :show
def index 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 @group = :all
end end
@ -27,7 +27,7 @@ class GroupsController < ApplicationController
def show def show
@group = Group.find_by_id params[:id] @group = Group.find_by_id params[:id]
@friends = @group.people @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 respond_with @group
end end

View file

@ -24,7 +24,7 @@ a {
#flash_notice, #flash_notice,
#flash_error, #flash_error,
#flash_alert { #flash_alert {
z-index: 3; z-index: 100;
top: 32px; top: 32px;
position: absolute; position: absolute;
color: black; color: black;

View file

@ -25,7 +25,7 @@ a
#flash_notice, #flash_notice,
#flash_error, #flash_error,
#flash_alert #flash_alert
:z-index 3 :z-index 100
:top 32px :top 32px
:position absolute :position absolute
:color #000 :color #000