|
|
@ -39,6 +39,7 @@ const ( |
|
|
|
// Settings render the main settings page
|
|
|
|
// Settings render the main settings page
|
|
|
|
func Settings(ctx *context.Context) { |
|
|
|
func Settings(ctx *context.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("org.settings") |
|
|
|
ctx.Data["Title"] = ctx.Tr("org.settings") |
|
|
|
|
|
|
|
ctx.Data["PageIsOrgSettings"] = true |
|
|
|
ctx.Data["PageIsSettingsOptions"] = true |
|
|
|
ctx.Data["PageIsSettingsOptions"] = true |
|
|
|
ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility |
|
|
|
ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility |
|
|
|
ctx.Data["RepoAdminChangeTeamAccess"] = ctx.Org.Organization.RepoAdminChangeTeamAccess |
|
|
|
ctx.Data["RepoAdminChangeTeamAccess"] = ctx.Org.Organization.RepoAdminChangeTeamAccess |
|
|
@ -49,6 +50,7 @@ func Settings(ctx *context.Context) { |
|
|
|
func SettingsPost(ctx *context.Context) { |
|
|
|
func SettingsPost(ctx *context.Context) { |
|
|
|
form := web.GetForm(ctx).(*forms.UpdateOrgSettingForm) |
|
|
|
form := web.GetForm(ctx).(*forms.UpdateOrgSettingForm) |
|
|
|
ctx.Data["Title"] = ctx.Tr("org.settings") |
|
|
|
ctx.Data["Title"] = ctx.Tr("org.settings") |
|
|
|
|
|
|
|
ctx.Data["PageIsOrgSettings"] = true |
|
|
|
ctx.Data["PageIsSettingsOptions"] = true |
|
|
|
ctx.Data["PageIsSettingsOptions"] = true |
|
|
|
ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility |
|
|
|
ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility |
|
|
|
|
|
|
|
|
|
|
@ -159,6 +161,7 @@ func SettingsDeleteAvatar(ctx *context.Context) { |
|
|
|
// SettingsDelete response for deleting an organization
|
|
|
|
// SettingsDelete response for deleting an organization
|
|
|
|
func SettingsDelete(ctx *context.Context) { |
|
|
|
func SettingsDelete(ctx *context.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("org.settings") |
|
|
|
ctx.Data["Title"] = ctx.Tr("org.settings") |
|
|
|
|
|
|
|
ctx.Data["PageIsOrgSettings"] = true |
|
|
|
ctx.Data["PageIsSettingsDelete"] = true |
|
|
|
ctx.Data["PageIsSettingsDelete"] = true |
|
|
|
|
|
|
|
|
|
|
|
if ctx.Req.Method == "POST" { |
|
|
|
if ctx.Req.Method == "POST" { |
|
|
@ -188,6 +191,7 @@ func SettingsDelete(ctx *context.Context) { |
|
|
|
// Webhooks render webhook list page
|
|
|
|
// Webhooks render webhook list page
|
|
|
|
func Webhooks(ctx *context.Context) { |
|
|
|
func Webhooks(ctx *context.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("org.settings") |
|
|
|
ctx.Data["Title"] = ctx.Tr("org.settings") |
|
|
|
|
|
|
|
ctx.Data["PageIsOrgSettings"] = true |
|
|
|
ctx.Data["PageIsSettingsHooks"] = true |
|
|
|
ctx.Data["PageIsSettingsHooks"] = true |
|
|
|
ctx.Data["BaseLink"] = ctx.Org.OrgLink + "/settings/hooks" |
|
|
|
ctx.Data["BaseLink"] = ctx.Org.OrgLink + "/settings/hooks" |
|
|
|
ctx.Data["BaseLinkNew"] = ctx.Org.OrgLink + "/settings/hooks" |
|
|
|
ctx.Data["BaseLinkNew"] = ctx.Org.OrgLink + "/settings/hooks" |
|
|
@ -219,6 +223,7 @@ func DeleteWebhook(ctx *context.Context) { |
|
|
|
// Labels render organization labels page
|
|
|
|
// Labels render organization labels page
|
|
|
|
func Labels(ctx *context.Context) { |
|
|
|
func Labels(ctx *context.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("repo.labels") |
|
|
|
ctx.Data["Title"] = ctx.Tr("repo.labels") |
|
|
|
|
|
|
|
ctx.Data["PageIsOrgSettings"] = true |
|
|
|
ctx.Data["PageIsOrgSettingsLabels"] = true |
|
|
|
ctx.Data["PageIsOrgSettingsLabels"] = true |
|
|
|
ctx.Data["RequireTribute"] = true |
|
|
|
ctx.Data["RequireTribute"] = true |
|
|
|
ctx.Data["LabelTemplates"] = models.LabelTemplates |
|
|
|
ctx.Data["LabelTemplates"] = models.LabelTemplates |
|
|
|