Improve how account detailed view looks, load account's statuses

This commit is contained in:
Eugen Rochko
2016-09-18 18:18:46 +02:00
parent dafcb02153
commit 0967961de7
9 changed files with 208 additions and 76 deletions

View File

@ -4,6 +4,7 @@ attributes :id, :username, :acct, :display_name, :note
node(:url) { |account| TagManager.instance.url_for(account) }
node(:avatar) { |account| full_asset_url(account.avatar.url(:large, false)) }
node(:header) { |account| full_asset_url(account.header.url(:medium, false)) }
node(:followers_count) { |account| account.followers.count }
node(:following_count) { |account| account.following.count }
node(:statuses_count) { |account| account.statuses.count }