2017-07-12 04:24:04 +03:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Form::AdminSettings
|
|
|
|
include ActiveModel::Model
|
|
|
|
|
|
|
|
delegate(
|
|
|
|
:site_contact_username,
|
|
|
|
:site_contact_username=,
|
|
|
|
:site_contact_email,
|
|
|
|
:site_contact_email=,
|
|
|
|
:site_title,
|
|
|
|
:site_title=,
|
2018-07-31 19:59:34 +03:00
|
|
|
:site_short_description,
|
|
|
|
:site_short_description=,
|
2017-07-12 04:24:04 +03:00
|
|
|
:site_description,
|
|
|
|
:site_description=,
|
|
|
|
:site_extended_description,
|
|
|
|
:site_extended_description=,
|
|
|
|
:site_terms,
|
|
|
|
:site_terms=,
|
|
|
|
:open_registrations,
|
|
|
|
:open_registrations=,
|
|
|
|
:closed_registrations_message,
|
|
|
|
:closed_registrations_message=,
|
|
|
|
:open_deletion,
|
|
|
|
:open_deletion=,
|
|
|
|
:timeline_preview,
|
|
|
|
:timeline_preview=,
|
2017-11-19 05:13:57 +02:00
|
|
|
:show_staff_badge,
|
|
|
|
:show_staff_badge=,
|
2017-09-10 10:58:38 +03:00
|
|
|
:bootstrap_timeline_accounts,
|
|
|
|
:bootstrap_timeline_accounts=,
|
2018-12-17 21:36:30 +02:00
|
|
|
:hide_followers_count,
|
|
|
|
:hide_followers_count=,
|
2018-08-24 14:34:51 +03:00
|
|
|
:flavour,
|
|
|
|
:flavour=,
|
|
|
|
:skin,
|
|
|
|
:skin=,
|
2017-11-27 17:07:59 +02:00
|
|
|
:min_invite_role,
|
|
|
|
:min_invite_role=,
|
2017-12-29 20:52:04 +02:00
|
|
|
:activity_api_enabled,
|
|
|
|
:activity_api_enabled=,
|
|
|
|
:peers_api_enabled,
|
|
|
|
:peers_api_enabled=,
|
2018-02-04 07:00:10 +02:00
|
|
|
:show_known_fediverse_at_about_page,
|
|
|
|
:show_known_fediverse_at_about_page=,
|
2018-07-06 03:15:56 +03:00
|
|
|
:preview_sensitive_media,
|
|
|
|
:preview_sensitive_media=,
|
2018-08-24 05:33:27 +03:00
|
|
|
:custom_css,
|
|
|
|
:custom_css=,
|
2018-12-11 20:18:29 +02:00
|
|
|
:profile_directory,
|
|
|
|
:profile_directory=,
|
2017-07-12 04:24:04 +03:00
|
|
|
to: Setting
|
|
|
|
)
|
2018-10-08 16:00:27 +03:00
|
|
|
|
|
|
|
def flavour_and_skin
|
|
|
|
"#{Setting.flavour}/#{Setting.skin}"
|
|
|
|
end
|
2017-07-12 04:24:04 +03:00
|
|
|
end
|