You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.2 KiB

  1. - content_for :page_title do
  2. = t('directories.explore_mastodon', title: site_title)
  3. - content_for :header_tags do
  4. %meta{ name: 'description', content: t('directories.explanation') }
  5. = opengraph 'og:site_name', t('about.hosted_on', domain: site_hostname)
  6. = opengraph 'og:type', 'website'
  7. = opengraph 'og:title', t('directories.explore_mastodon', title: site_title)
  8. = opengraph 'og:description', t('directories.explanation')
  9. = opengraph 'og:image', File.join(root_url, 'android-chrome-192x192.png')
  10. .page-header
  11. %h1= t('directories.explore_mastodon', title: site_title)
  12. %p= t('directories.explanation')
  13. - if @accounts.empty?
  14. = nothing_here
  15. - else
  16. .directory__list
  17. - @accounts.each do |account|
  18. .directory__card
  19. .directory__card__img
  20. = image_tag account.header.url, alt: ''
  21. .directory__card__bar
  22. = link_to TagManager.instance.url_for(account), class: 'directory__card__bar__name' do
  23. .avatar
  24. = image_tag account.avatar.url, alt: '', class: 'u-photo'
  25. .display-name
  26. %bdi
  27. %strong.emojify.p-name= display_name(account, custom_emojify: true)
  28. %span= acct(account)
  29. .directory__card__bar__relationship.account__relationship
  30. = minimal_account_action_button(account)
  31. .directory__card__extra
  32. .account__header__content.emojify= Formatter.instance.simplified_format(account, custom_emojify: true)
  33. .directory__card__extra
  34. .accounts-table__count
  35. = friendly_number_to_human account.statuses_count
  36. %small= t('accounts.posts', count: account.statuses_count).downcase
  37. .accounts-table__count
  38. = friendly_number_to_human account.followers_count
  39. %small= t('accounts.followers', count: account.followers_count).downcase
  40. .accounts-table__count
  41. - if account.last_status_at.present?
  42. %time.time-ago{ datetime: account.last_status_at.to_date.iso8601, title: l(account.last_status_at.to_date) }= l account.last_status_at.to_date
  43. - else
  44. = t('accounts.never_active')
  45. %small= t('accounts.last_active')
  46. = paginate @accounts