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

52 lines
2.0 KiB

  1. - content_for :page_title do
  2. Site Settings
  3. %table.table
  4. %colgroup
  5. %col{ width: '35%' }/
  6. %thead
  7. %tr
  8. %th Setting
  9. %th Click to edit
  10. %tbody
  11. %tr
  12. %td{ rowspan: 2 }
  13. %strong Contact information
  14. %td= best_in_place @settings['site_contact_username'], :value, url: admin_setting_path(@settings['site_contact_username']), place_holder: 'Enter a username'
  15. %tr
  16. %td= best_in_place @settings['site_contact_email'], :value, url: admin_setting_path(@settings['site_contact_email']), place_holder: 'Enter a public e-mail address'
  17. %tr
  18. %td
  19. %strong Site title
  20. %td= best_in_place @settings['site_title'], :value, url: admin_setting_path(@settings['site_title'])
  21. %tr
  22. %td
  23. %strong Site description
  24. %br/
  25. Displayed as a paragraph on the frontpage and used as a meta tag.
  26. %br/
  27. You can use HTML tags, in particular
  28. %code= '<a>'
  29. and
  30. %code= '<em>'
  31. %td= best_in_place @settings['site_description'], :value, as: :textarea, url: admin_setting_path(@settings['site_description'])
  32. %tr
  33. %td
  34. %strong Extended site description
  35. %br/
  36. Displayed on extended information page
  37. %br/
  38. You can use HTML tags
  39. %td= best_in_place @settings['site_extended_description'], :value, as: :textarea, url: admin_setting_path(@settings['site_extended_description'])
  40. %tr
  41. %td
  42. %strong Open registration
  43. %td= best_in_place @settings['open_registrations'], :value, as: :checkbox, collection: { false: 'Disabled', true: 'Enabled'}, url: admin_setting_path(@settings['open_registrations'])
  44. %tr
  45. %td
  46. %strong Closed registration message
  47. %br/
  48. Displayed on frontpage when registrations are closed
  49. %br/
  50. You can use HTML tags
  51. %td= best_in_place @settings['closed_registrations_message'], :value, as: :textarea, url: admin_setting_path(@settings['closed_registrations_message'])