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

23 lines
691 B

  1. - content_for :page_title do
  2. = t('admin.instances.title')
  3. = form_tag admin_instances_url, method: 'GET', class: 'simple_form' do
  4. .fields-group
  5. - %i(domain_name).each do |key|
  6. .input.string.optional
  7. = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.instances.#{key}")
  8. .actions
  9. %button= t('admin.instances.search')
  10. = link_to t('admin.instances.reset'), admin_instances_path, class: 'button negative'
  11. .table-wrapper
  12. %table.table
  13. %thead
  14. %tr
  15. %th= t('admin.instances.domain_name')
  16. %th= t('admin.instances.account_count')
  17. %tbody
  18. = render @instances
  19. = paginate paginated_instances