|
|
@ -42,7 +42,7 @@ const ( |
|
|
|
|
|
|
|
|
|
|
|
// Profile render user's profile page
|
|
|
|
// Profile render user's profile page
|
|
|
|
func Profile(ctx *context.Context) { |
|
|
|
func Profile(ctx *context.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("settings") |
|
|
|
ctx.Data["Title"] = ctx.Tr("settings.profile") |
|
|
|
ctx.Data["PageIsSettingsProfile"] = true |
|
|
|
ctx.Data["PageIsSettingsProfile"] = true |
|
|
|
ctx.Data["AllowedUserVisibilityModes"] = setting.Service.AllowedUserVisibilityModesSlice.ToVisibleTypeSlice() |
|
|
|
ctx.Data["AllowedUserVisibilityModes"] = setting.Service.AllowedUserVisibilityModesSlice.ToVisibleTypeSlice() |
|
|
|
|
|
|
|
|
|
|
@ -219,7 +219,7 @@ func DeleteAvatar(ctx *context.Context) { |
|
|
|
|
|
|
|
|
|
|
|
// Organization render all the organization of the user
|
|
|
|
// Organization render all the organization of the user
|
|
|
|
func Organization(ctx *context.Context) { |
|
|
|
func Organization(ctx *context.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("settings") |
|
|
|
ctx.Data["Title"] = ctx.Tr("settings.organization") |
|
|
|
ctx.Data["PageIsSettingsOrganization"] = true |
|
|
|
ctx.Data["PageIsSettingsOrganization"] = true |
|
|
|
|
|
|
|
|
|
|
|
opts := organization.FindOrgOptions{ |
|
|
|
opts := organization.FindOrgOptions{ |
|
|
@ -254,7 +254,7 @@ func Organization(ctx *context.Context) { |
|
|
|
|
|
|
|
|
|
|
|
// Repos display a list of all repositories of the user
|
|
|
|
// Repos display a list of all repositories of the user
|
|
|
|
func Repos(ctx *context.Context) { |
|
|
|
func Repos(ctx *context.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("settings") |
|
|
|
ctx.Data["Title"] = ctx.Tr("settings.repos") |
|
|
|
ctx.Data["PageIsSettingsRepos"] = true |
|
|
|
ctx.Data["PageIsSettingsRepos"] = true |
|
|
|
ctx.Data["allowAdopt"] = ctx.IsUserSiteAdmin() || setting.Repository.AllowAdoptionOfUnadoptedRepositories |
|
|
|
ctx.Data["allowAdopt"] = ctx.IsUserSiteAdmin() || setting.Repository.AllowAdoptionOfUnadoptedRepositories |
|
|
|
ctx.Data["allowDelete"] = ctx.IsUserSiteAdmin() || setting.Repository.AllowDeleteOfUnadoptedRepositories |
|
|
|
ctx.Data["allowDelete"] = ctx.IsUserSiteAdmin() || setting.Repository.AllowDeleteOfUnadoptedRepositories |
|
|
@ -360,7 +360,7 @@ func Repos(ctx *context.Context) { |
|
|
|
|
|
|
|
|
|
|
|
// Appearance render user's appearance settings
|
|
|
|
// Appearance render user's appearance settings
|
|
|
|
func Appearance(ctx *context.Context) { |
|
|
|
func Appearance(ctx *context.Context) { |
|
|
|
ctx.Data["Title"] = ctx.Tr("settings") |
|
|
|
ctx.Data["Title"] = ctx.Tr("settings.appearance") |
|
|
|
ctx.Data["PageIsSettingsAppearance"] = true |
|
|
|
ctx.Data["PageIsSettingsAppearance"] = true |
|
|
|
|
|
|
|
|
|
|
|
var hiddenCommentTypes *big.Int |
|
|
|
var hiddenCommentTypes *big.Int |
|
|
|