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.

55 lines
1.2 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. :flavour,
  32. :flavour=,
  33. :skin,
  34. :skin=,
  35. :min_invite_role,
  36. :min_invite_role=,
  37. :activity_api_enabled,
  38. :activity_api_enabled=,
  39. :peers_api_enabled,
  40. :peers_api_enabled=,
  41. :show_known_fediverse_at_about_page,
  42. :show_known_fediverse_at_about_page=,
  43. :preview_sensitive_media,
  44. :preview_sensitive_media=,
  45. :custom_css,
  46. :custom_css=,
  47. to: Setting
  48. )
  49. def flavour_and_skin
  50. "#{Setting.flavour}/#{Setting.skin}"
  51. end
  52. end