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