2016-03-19 07:49:34 -04:00
|
|
|
- content_for :page_title do
|
|
|
|
= display_name(@account)
|
|
|
|
|
2016-02-28 08:41:01 -05:00
|
|
|
- content_for :header_tags do
|
2016-02-29 13:42:08 -05:00
|
|
|
%link{ rel: 'salmon', href: api_salmon_url(@account.id) }/
|
|
|
|
%link{ rel: 'alternate', type: 'application/atom+xml', href: account_url(@account, format: 'atom') }/
|
2016-02-28 08:41:01 -05:00
|
|
|
|
2016-03-12 14:47:22 -05:00
|
|
|
.card{ style: "background-image: url(#{@account.header.url(:medium)})" }
|
2016-03-05 17:42:40 -05:00
|
|
|
.avatar= image_tag @account.avatar.url(:large)
|
2016-03-06 06:34:39 -05:00
|
|
|
%h1.name
|
2016-03-19 07:49:34 -04:00
|
|
|
= display_name(@account)
|
2016-03-06 06:34:39 -05:00
|
|
|
%small= "@#{@account.username}"
|
|
|
|
.details
|
|
|
|
.counter
|
|
|
|
%span.counter-label Posts
|
|
|
|
%span.counter-number= @account.statuses.count
|
|
|
|
.counter
|
|
|
|
%span.counter-label Following
|
|
|
|
%span.counter-number= @account.following.count
|
|
|
|
.counter
|
|
|
|
%span.counter-label Followers
|
|
|
|
%span.counter-number= @account.followers.count
|
|
|
|
.bio
|
|
|
|
%p= @account.note
|
2016-03-19 07:49:34 -04:00
|
|
|
|
2016-02-27 18:51:05 -05:00
|
|
|
.activity-stream
|
2016-03-06 06:34:39 -05:00
|
|
|
- @statuses.each do |status|
|
2016-02-29 13:42:08 -05:00
|
|
|
= render partial: 'stream_entries/status', locals: { status: status, include_threads: false, is_successor: false, is_predecessor: false }
|
2016-03-19 07:49:34 -04:00
|
|
|
|
|
|
|
= will_paginate @statuses, previous_label: "#{fa_icon('chevron-left')} Prev".html_safe, next_label: "Next #{fa_icon('chevron-right')}".html_safe, inner_window: 2
|