|
17 | 17 | - if @accounts.empty? |
18 | 18 | = nothing_here |
19 | 19 | - else |
20 | | - .card-grid |
21 | | - = render partial: 'application/card', collection: @accounts, as: :account |
| 20 | + .directory__list |
| 21 | + - @accounts.each do |account| |
| 22 | + .directory__card |
| 23 | + .directory__card__img |
| 24 | + = image_tag account.header.url, alt: '' |
| 25 | + .directory__card__bar |
| 26 | + = link_to TagManager.instance.url_for(account), class: 'directory__card__bar__name' do |
| 27 | + .avatar |
| 28 | + = image_tag account.avatar.url, alt: '', width: 48, height: 48, class: 'u-photo' |
| 29 | + |
| 30 | + .display-name |
| 31 | + %span{ id: "default_account_display_name", style: "display: none" }= account.username |
| 32 | + %bdi |
| 33 | + %strong.emojify.p-name= display_name(account, custom_emojify: true) |
| 34 | + %span= acct(account) |
| 35 | + .directory__card__bar__relationship.account__relationship |
| 36 | + = minimal_account_action_button(account) |
| 37 | + |
| 38 | + .directory__card__extra |
| 39 | + .account__header__content.emojify= Formatter.instance.simplified_format(account, custom_emojify: true) |
| 40 | + |
| 41 | + .directory__card__extra |
| 42 | + .accounts-table__count |
| 43 | + = number_to_human account.statuses_count, strip_insignificant_zeros: true |
| 44 | + %small= t('accounts.posts', count: account.statuses_count).downcase |
| 45 | + .accounts-table__count |
| 46 | + = number_to_human account.followers_count, strip_insignificant_zeros: true |
| 47 | + %small= t('accounts.followers', count: account.followers_count).downcase |
| 48 | + .accounts-table__count |
| 49 | + - if account.last_status_at.present? |
| 50 | + %time.time-ago{ datetime: account.last_status_at.iso8601, title: l(account.last_status_at) }= l account.last_status_at |
| 51 | + - else |
| 52 | + = t('invites.expires_in_prompt') |
| 53 | + |
| 54 | + %small= t('accounts.last_active') |
22 | 55 |
|
23 | 56 | = paginate @accounts |
0 commit comments