diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-28 00:51:05 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-28 00:51:05 +0100 |
commit | 5ae54f9e364880e1350ddcc8251a23cf79ae55fc (patch) | |
tree | 9dbf55bae26ad0dfb9ecd9f39d68aeb32188cc0e /app/views/profile/show.html.haml | |
parent | 2c70f0ecaa507427d2592434cb4a516bcedd5039 (diff) |
Adding avatars to profile page and statuses
Diffstat (limited to 'app/views/profile/show.html.haml')
-rw-r--r-- | app/views/profile/show.html.haml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/views/profile/show.html.haml b/app/views/profile/show.html.haml index c84cb7e81..b93791734 100644 --- a/app/views/profile/show.html.haml +++ b/app/views/profile/show.html.haml @@ -1,8 +1,10 @@ -%div.card - %h1.name - = @account.display_name.blank? ? @account.username : @account.display_name - %small= "@#{@account.username}" +.card + .avatar= image_tag @account.avatar.url(:medium) + .bio + %h1.name + = @account.display_name.blank? ? @account.username : @account.display_name + %small= "@#{@account.username}" -%div.activity-stream +.activity-stream - @account.statuses.order('id desc').each do |status| = render partial: 'status', locals: { status: status } |