2022-05-01 18:00:38 +02:00
|
|
|
class SiteSettingsController < ApplicationController
|
|
|
|
|
include ApplicationHelper
|
|
|
|
|
|
2022-08-05 18:15:17 +02:00
|
|
|
before_action :authenticate_admin,
|
2024-01-23 18:50:42 +01:00
|
|
|
only: [:general, :authentication, :boards, :post_statuses, :roadmap, :appearance]
|
2022-08-05 18:15:17 +02:00
|
|
|
|
2023-01-18 21:11:27 +01:00
|
|
|
before_action :authenticate_moderator,
|
2022-08-05 18:15:17 +02:00
|
|
|
only: [:users]
|
2024-01-26 17:35:00 +01:00
|
|
|
|
|
|
|
|
before_action :set_page_title
|
2022-05-01 18:00:38 +02:00
|
|
|
|
|
|
|
|
def general
|
|
|
|
|
end
|
|
|
|
|
|
2024-01-23 18:50:42 +01:00
|
|
|
def authentication
|
|
|
|
|
end
|
|
|
|
|
|
2022-05-08 16:36:35 +02:00
|
|
|
def boards
|
|
|
|
|
end
|
|
|
|
|
|
2022-05-01 18:00:38 +02:00
|
|
|
def post_statuses
|
|
|
|
|
end
|
2022-06-12 15:22:06 +02:00
|
|
|
|
|
|
|
|
def roadmap
|
|
|
|
|
end
|
2022-06-24 14:39:35 +02:00
|
|
|
|
2024-01-23 18:50:42 +01:00
|
|
|
def appearance
|
2022-06-24 14:39:35 +02:00
|
|
|
end
|
2022-08-05 18:15:17 +02:00
|
|
|
|
2024-01-23 18:50:42 +01:00
|
|
|
def users
|
2022-08-05 18:15:17 +02:00
|
|
|
end
|
2024-01-26 17:35:00 +01:00
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def set_page_title
|
|
|
|
|
@page_title = t('header.menu.site_settings')
|
|
|
|
|
end
|
2022-05-01 18:00:38 +02:00
|
|
|
end
|