闭社主体 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.

56 lines
2.2 KiB

7 years ago
7 years ago
7 years ago
  1. - content_for :page_title do
  2. #{Rails.configuration.x.local_domain}
  3. .wrapper.thicc
  4. .sidebar-layout
  5. .main
  6. .panel
  7. %h2= Rails.configuration.x.local_domain
  8. - unless @instance_presenter.site_description.blank?
  9. %p= @instance_presenter.site_description.html_safe
  10. .information-board
  11. .section
  12. %span= t 'about.user_count_before'
  13. %strong= number_with_delimiter @instance_presenter.user_count
  14. %span= t 'about.user_count_after'
  15. .section
  16. %span= t 'about.status_count_before'
  17. %strong= number_with_delimiter @instance_presenter.status_count
  18. %span= t 'about.status_count_after'
  19. .section
  20. %span= t 'about.domain_count_before'
  21. %strong= number_with_delimiter @instance_presenter.domain_count
  22. %span= t 'about.domain_count_after'
  23. - unless @instance_presenter.site_extended_description.blank?
  24. .panel= @instance_presenter.site_extended_description.html_safe
  25. .sidebar
  26. .panel
  27. .panel-header= t 'about.contact'
  28. .panel-body
  29. - if @instance_presenter.contact_account
  30. .owner
  31. .avatar= image_tag @instance_presenter.contact_account.avatar.url
  32. .name
  33. = link_to TagManager.instance.url_for(@instance_presenter.contact_account) do
  34. %span.display_name.emojify= display_name(@instance_presenter.contact_account)
  35. %span.username= "@#{@instance_presenter.contact_account.acct}"
  36. - unless @instance_presenter.contact_email.blank?
  37. .contact-email
  38. = t 'about.business_email'
  39. %strong= @instance_presenter.contact_email
  40. .panel
  41. .panel-header= t 'about.links'
  42. .panel-list
  43. %ul
  44. - if user_signed_in?
  45. %li= link_to t('about.get_started'), root_path
  46. - else
  47. %li= link_to t('about.get_started'), new_user_registration_path
  48. %li= link_to t('auth.login'), new_user_session_path
  49. %li= link_to t('about.terms'), terms_path
  50. %li= link_to t('about.source_code'), 'https://github.com/tootsuite/mastodon'