// Copyright 2026 Moko Consulting <hello@mokoconsulting.tech>
// SPDX-License-Identifier: GPL-3.0-or-later

package setting

import (
	"net/http"

	"code.mokoconsulting.tech/MokoConsulting/MokoGitea/modules/templates"
	"code.mokoconsulting.tech/MokoConsulting/MokoGitea/services/context"
)

const tplSettingsAdvanced templates.TplName = "repo/settings/advanced"

// AdvancedSettings displays the advanced (feature units) settings page.
func AdvancedSettings(ctx *context.Context) {
	ctx.Data["Title"] = ctx.Tr("repo.settings.advanced_settings")
	ctx.Data["PageIsSettingsOptions"] = false
	ctx.Data["PageIsSettingsAdvanced"] = true
	ctx.HTML(http.StatusOK, tplSettingsAdvanced)
}
