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.

59 lines
1.3 KiB

  1. # frozen_string_literal: true
  2. class Form::AdminSettings
  3. include ActiveModel::Model
  4. delegate(
  5. :site_contact_username,
  6. :site_contact_username=,
  7. :site_contact_email,
  8. :site_contact_email=,
  9. :site_title,
  10. :site_title=,
  11. :site_short_description,
  12. :site_short_description=,
  13. :site_description,
  14. :site_description=,
  15. :site_extended_description,
  16. :site_extended_description=,
  17. :site_terms,
  18. :site_terms=,
  19. :open_registrations,
  20. :open_registrations=,
  21. :closed_registrations_message,
  22. :closed_registrations_message=,
  23. :open_deletion,
  24. :open_deletion=,
  25. :timeline_preview,
  26. :timeline_preview=,
  27. :show_staff_badge,
  28. :show_staff_badge=,
  29. :bootstrap_timeline_accounts,
  30. :bootstrap_timeline_accounts=,
  31. :hide_followers_count,
  32. :hide_followers_count=,
  33. :flavour,
  34. :flavour=,
  35. :skin,
  36. :skin=,
  37. :min_invite_role,
  38. :min_invite_role=,
  39. :activity_api_enabled,
  40. :activity_api_enabled=,
  41. :peers_api_enabled,
  42. :peers_api_enabled=,
  43. :show_known_fediverse_at_about_page,
  44. :show_known_fediverse_at_about_page=,
  45. :preview_sensitive_media,
  46. :preview_sensitive_media=,
  47. :custom_css,
  48. :custom_css=,
  49. :profile_directory,
  50. :profile_directory=,
  51. to: Setting
  52. )
  53. def flavour_and_skin
  54. "#{Setting.flavour}/#{Setting.skin}"
  55. end
  56. end