diff --git a/options/locale/locale_ru-RU.ini b/options/locale/locale_ru-RU.ini index 7a3a9bb10d..b056d84c5e 100644 --- a/options/locale/locale_ru-RU.ini +++ b/options/locale/locale_ru-RU.ini @@ -494,6 +494,9 @@ follow=Подписаться unfollow=Отписаться heatmap.loading=Загрузка тепловой карты… user_bio=О себе +user_competences=Компетенции +user_resources=Ресурсы +user_interests=Интересы disabled_public_activity=Этот пользователь отключил публичную видимость активности. form.name_reserved=Имя пользователя '%s' зарезервировано. diff --git a/routers/web/user/setting/profile.go b/routers/web/user/setting/profile.go index ddc5a7c47d..255318a8c9 100644 --- a/routers/web/user/setting/profile.go +++ b/routers/web/user/setting/profile.go @@ -121,6 +121,9 @@ func ProfilePost(ctx *context.Context) { ctx.User.Location = form.Location ctx.User.LocationCoordinate = form.LocationCoordinate ctx.User.Description = form.Description + ctx.User.Competences = form.Competences + ctx.User.Resources = form.Resources + ctx.User.Interests = form.Interests ctx.User.KeepActivityPrivate = form.KeepActivityPrivate ctx.User.Visibility = form.Visibility if err := user_model.UpdateUserSetting(ctx.User); err != nil { diff --git a/services/forms/user_form.go b/services/forms/user_form.go index 1ea967ca1b..00d9cba093 100644 --- a/services/forms/user_form.go +++ b/services/forms/user_form.go @@ -247,6 +247,9 @@ type UpdateProfileForm struct { Location string `binding:"MaxSize(50)"` LocationCoordinate string `binding:"MaxSize(255)"` Description string `binding:"MaxSize(1024)"` + Competences string `binding:"MaxSize(1024)"` + Resources string `binding:"MaxSize(1024)"` + Interests string `binding:"MaxSize(1024)"` Visibility structs.VisibleType KeepActivityPrivate bool } diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index 18f5ed4b5c..8123c8670a 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -38,6 +38,18 @@ +