diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 34ae5960c6b1556dec40d51f8976d1749c9a8512..0d1cecf6b70412eee85400f27ea4f4e587f254f5 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -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 diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 9964778fbe1e74c8f0cdbcc9c1dd1cce6a01065e..904598dfbe45b4b20cbd40e6bd2914eb76571e74 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -7,7 +7,6 @@ class UsersController < ApplicationController def show @user = User.find_by_id params[:id] @user_profile = @user.person.profile - respond_with @user end @@ -21,6 +20,6 @@ class UsersController < ApplicationController def update @user = User.find_by_id params[:id] @user.update_profile params[:user] - respond_with @user + respond_with(@user, :location => root_url) end end diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index c53434d9638b91140a02f11ffb70100d3e2e46fb..3c70d3a8a2b7d7dee3bd7788e0decacfed9e56cc 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -50,7 +50,7 @@ = owner_image_tag = link_to current_user.real_name, current_user.person %li.requests= link_to "requests (#{@request_count})", requests_path, :class => new_request(@request_count) - %li.settings= link_to "settings", edit_user_path(current_user) + %li.settings= link_to "edit profile", edit_user_path(current_user) %li.logout= link_to "logout", destroy_user_session_path = render "shared/group_nav" diff --git a/app/views/users/new.html.haml b/app/views/users/new.html.haml deleted file mode 100644 index 84b971b6e68a5fdd4c49b090424448629bb4b818..0000000000000000000000000000000000000000 --- a/app/views/users/new.html.haml +++ /dev/null @@ -1,13 +0,0 @@ -- title "New User" - -= form_for @user do |f| - = f.error_messages - %p - = f.label :password - %br - = f.password_field :password - %p - = f.submit - - -%p= link_to "Back to List", users_path diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml deleted file mode 100644 index b678b43776639f8e94c990c6eb1d7796848918ac..0000000000000000000000000000000000000000 --- a/app/views/users/show.html.haml +++ /dev/null @@ -1,11 +0,0 @@ -.span-20.last - %h1= "#{@user.real_name}" -- if @user_profile - %p - %b url - %p - = @user.url - %p - %b Serialized Key - %p - = @user.serialized_key diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index d5c0f5b909ba195ebdea9877ff3c0626221ae851..1bc9132e6b82172f9a22b0e3d619cb78183c7760 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -24,7 +24,7 @@ a { #flash_notice, #flash_error, #flash_alert { - z-index: 3; + z-index: 100; top: 32px; position: absolute; color: black; diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index c86603a279457fdc2b968841ca635864d68b569b..4b23cecfc77957a38c63638d09e0a1eb78a8163a 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -25,7 +25,7 @@ a #flash_notice, #flash_error, #flash_alert - :z-index 3 + :z-index 100 :top 32px :position absolute :color #000