Merge branch 'master' of github.com:diaspora/diaspora

This commit is contained in:
ilya 2010-09-16 11:48:59 -07:00
commit b880602497
4 changed files with 9 additions and 2 deletions

View file

@ -9,7 +9,8 @@ class AlbumsController < ApplicationController
respond_to :json, :only => [:index, :show]
def index
@albums = current_user.albums_by_aspect(@aspect).paginate
@albums = current_user.albums_by_aspect(@aspect).paginate :page => params[:page], :per_page => 9, :order => 'created_at DESC'
@aspect = :all
respond_with @albums, :aspect => @aspect
end

View file

@ -11,7 +11,9 @@ class PeopleController < ApplicationController
def index
@aspects_dropdown_array = current_user.aspects.collect{|x| [x.to_s, x.id]}
@people = Person.search params[:q]
@aspect = :all
@people = Person.search(params[:q]).paginate :page => params[:page], :per_page => 25, :order => 'created_at DESC'
respond_with @people
end

View file

@ -48,3 +48,4 @@
= f.select(:aspect_id, @aspects_dropdown_array)
= f.hidden_field :destination_url, :value => person.diaspora_handle
= f.submit "add friend"
= will_paginate @people

View file

@ -11,8 +11,11 @@
#flash_alert {
z-index: 100;
top: 32px;
position: absolute;
color: black;
width: 400px;
margin: 0 0 0 -200px;
left: 50%;
text-align: center;
font-size: 14px;
padding: 3px 0; }