瀏覽代碼

Change default avatar, redirect to home after sign up

master
Eugen Rochko 8 年之前
父節點
當前提交
02696a063e
共有 4 個檔案被更改,包括 9 行新增4 行删除
  1. 二進制
      app/assets/images/avatars/missing.png
  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

二進制
app/assets/images/avatars/missing.png 查看文件

Before After
Width: 300  |  Height: 300  |  Size: 909 B Width: 300  |  Height: 300  |  Size: 9.6 KiB

+ 1
- 0
app/assets/stylesheets/accounts.scss 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存