闭社主体 forked from https://github.com/tootsuite/mastodon
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.

76 lines
2.8 KiB

  1. - content_for :header_tags do
  2. %link{ rel: 'canonical', href: about_url }/
  3. = render partial: 'shared/og'
  4. .landing
  5. .landing__brand
  6. = link_to root_url, class: 'brand' do
  7. = svg_logo_full
  8. %span.brand__tagline=site_title
  9. .landing__grid
  10. .landing__grid__column.landing__grid__column-registration
  11. .box-widget
  12. = render 'registration'
  13. .directory
  14. - if Setting.profile_directory
  15. .directory__tag
  16. = optional_link_to Setting.profile_directory, explore_path do
  17. %h4
  18. = fa_icon 'address-book fw'
  19. = t('about.discover_users')
  20. %small= t('about.browse_directory')
  21. .avatar-stack
  22. - @instance_presenter.sample_accounts.each do |account|
  23. = image_tag current_account&.user&.setting_auto_play_gif ? account.avatar_original_url : account.avatar_static_url, alt: '', class: 'account__avatar'
  24. - if Setting.timeline_preview
  25. .directory__tag
  26. = optional_link_to Setting.timeline_preview, public_timeline_path do
  27. %h4
  28. = fa_icon 'globe fw'
  29. = t('about.see_whats_happening')
  30. %small= t('about.browse_public_posts')
  31. .directory__tag
  32. = link_to 'https://closed.social/apps', target: '_blank', rel: 'noopener noreferrer' do
  33. %h4
  34. = fa_icon 'tablet fw'
  35. = t('about.get_apps')
  36. %small= t('about.apps_platforms')
  37. .landing__grid__column.landing__grid__column-login
  38. .box-widget
  39. = render 'login'
  40. .hero-widget
  41. .hero-widget__img
  42. = image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.jpg'), alt: @instance_presenter.site_title
  43. .hero-widget__text
  44. %p
  45. = @instance_presenter.site_short_description.html_safe.presence || t('about.about_mastodon_html')
  46. = link_to about_more_path do
  47. = t('about.learn_more')
  48. = fa_icon 'angle-double-right'
  49. .hero-widget__footer
  50. .hero-widget__footer__column
  51. %h4= t 'about.administered_by'
  52. = account_link_to @instance_presenter.contact_account
  53. .hero-widget__footer__column
  54. %h4= t 'about.server_stats'
  55. .hero-widget__counters__wrapper
  56. .hero-widget__counter
  57. %strong= friendly_number_to_human @instance_presenter.user_count
  58. %span= t 'about.user_count_after', count: @instance_presenter.user_count
  59. .hero-widget__counter
  60. %strong= friendly_number_to_human @instance_presenter.active_user_count
  61. %span
  62. = t 'about.active_count_after'
  63. %abbr{ title: t('about.active_footnote') } *