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

40 lines
2.1 KiB

  1. - content_for :page_title do
  2. = t('admin.settings.title')
  3. %table.table
  4. %colgroup
  5. %col{ width: '35%' }/
  6. %thead
  7. %tr
  8. %th= t('admin.settings.setting')
  9. %th= t('admin.settings.click_to_edit')
  10. %tbody
  11. %tr
  12. %td{ rowspan: 2 }
  13. %strong= t('admin.settings.contact_information.label')
  14. %td= best_in_place @settings['site_contact_username'], :value, url: admin_setting_path(@settings['site_contact_username']), place_holder: t('admin.settings.contact_information.username')
  15. %tr
  16. %td= best_in_place @settings['site_contact_email'], :value, url: admin_setting_path(@settings['site_contact_email']), place_holder: t('admin.settings.contact_information.email')
  17. %tr
  18. %td
  19. %strong= t('admin.settings.site_title')
  20. %td= best_in_place @settings['site_title'], :value, url: admin_setting_path(@settings['site_title'])
  21. %tr
  22. %td
  23. %strong= t('admin.settings.site_description.title')
  24. %p= t('admin.settings.site_description.desc_html')
  25. %td= best_in_place @settings['site_description'], :value, as: :textarea, url: admin_setting_path(@settings['site_description'])
  26. %tr
  27. %td
  28. %strong= t('admin.settings.site_description_extended.title')
  29. %p= t('admin.settings.site_description_extended.desc_html')
  30. %td= best_in_place @settings['site_extended_description'], :value, as: :textarea, url: admin_setting_path(@settings['site_extended_description'])
  31. %tr
  32. %td
  33. %strong= t('admin.settings.registrations.open.title')
  34. %td= best_in_place @settings['open_registrations'], :value, as: :checkbox, collection: { false: t('admin.settings.registrations.open.disabled'), true: t('admin.settings.registrations.open.enabled')}, url: admin_setting_path(@settings['open_registrations'])
  35. %tr
  36. %td
  37. %strong= t('admin.settings.registrations.closed_message.title')
  38. %p= t('admin.settings.registrations.closed_message.desc_html')
  39. %td= best_in_place @settings['closed_registrations_message'], :value, as: :textarea, url: admin_setting_path(@settings['closed_registrations_message'])