Browse Source

Change default avatar, redirect to home after sign up

closed-social-glitch-2
Eugen Rochko 8 years ago
parent
commit
02696a063e
4 changed files with 9 additions and 4 deletions
  1. BIN
     
  2. +1
    -0
      app/assets/stylesheets/accounts.scss
  3. +1
    -1
      app/controllers/auth/registrations_controller.rb
  4. +7
    -3
      app/views/accounts/show.html.haml

BIN
View File


+ 1
- 0
app/assets/stylesheets/accounts.scss View File

@ -267,5 +267,6 @@
font-weight: 500;
text-align: center;
padding: 15px 0;
padding-bottom: 25px;
cursor: default;
}

+ 1
- 1
app/controllers/auth/registrations_controller.rb View File

@ -17,6 +17,6 @@ class Auth::RegistrationsController < Devise::RegistrationsController
end
def after_sign_up_path_for(resource)
account_path(resource.account)
root_path
end
end

+ 7
- 3
app/views/accounts/show.html.haml View File

@ -7,8 +7,12 @@
= render partial: 'header'
.activity-stream
- @statuses.each do |status|
= render partial: 'stream_entries/status', locals: { status: status, include_threads: false, is_successor: false, is_predecessor: false }
- if @statuses.empty?
.accounts-grid
= render partial: 'nothing_here'
- else
.activity-stream
- @statuses.each do |status|
= render partial: 'stream_entries/status', locals: { status: status }
= will_paginate @statuses, pagination_options

Loading…
Cancel
Save