Adding avatars to profile page and statuses

This commit is contained in:
Eugen Rochko
2016-02-28 00:51:05 +01:00
parent 2c70f0ecaa
commit 5ae54f9e36
7 changed files with 80 additions and 30 deletions

View File

@@ -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 }