User profile bio limit
parent
77133463fb
commit
08be65d587
|
@ -1116,7 +1116,7 @@
|
||||||
"EMAIL": "Email",
|
"EMAIL": "Email",
|
||||||
"FULL_NAME": "Full name",
|
"FULL_NAME": "Full name",
|
||||||
"PLACEHOLDER_FULL_NAME": "Set your full name (ex. Íñigo Montoya)",
|
"PLACEHOLDER_FULL_NAME": "Set your full name (ex. Íñigo Montoya)",
|
||||||
"BIO": "Bio",
|
"BIO": "Bio (max. 210 chars)",
|
||||||
"PLACEHOLDER_BIO": "Tell us something about you",
|
"PLACEHOLDER_BIO": "Tell us something about you",
|
||||||
"LANGUAGE": "Language",
|
"LANGUAGE": "Language",
|
||||||
"LANGUAGE_DEFAULT": "-- use default language --"
|
"LANGUAGE_DEFAULT": "-- use default language --"
|
||||||
|
|
|
@ -34,4 +34,4 @@ section.profile-bar
|
||||||
// div.organization
|
// div.organization
|
||||||
|
|
||||||
div.profile-quote(ng-if="::vm.user.bio")
|
div.profile-quote(ng-if="::vm.user.bio")
|
||||||
span {{::vm.user.bio}}
|
span {{::vm.user.bio | limitTo:210 }}{{vm.user.bio.length < 210 ? '' : '...'}}
|
||||||
|
|
|
@ -58,8 +58,9 @@ div.wrapper(tg-user-profile, ng-controller="UserSettingsController as ctrl",
|
||||||
|
|
||||||
fieldset
|
fieldset
|
||||||
label(for="bio", translate="USER_PROFILE.FIELD.BIO")
|
label(for="bio", translate="USER_PROFILE.FIELD.BIO")
|
||||||
|
|
||||||
textarea(name="bio", id="bio", ng-model="user.bio",
|
textarea(name="bio", id="bio", ng-model="user.bio",
|
||||||
ng-attr-placeholder="{{'USER_PROFILE.FIELD.PLACEHOLDER_BIO' | translate}}")
|
ng-attr-placeholder="{{'USER_PROFILE.FIELD.PLACEHOLDER_BIO' | translate}}", ng-maxlength="210", maxlength="210")
|
||||||
|
|
||||||
fieldset.submit
|
fieldset.submit
|
||||||
button.button-green.submit-button(type="submit", title="{{'COMMON.SAVE' | translate}}",
|
button.button-green.submit-button(type="submit", title="{{'COMMON.SAVE' | translate}}",
|
||||||
|
|
|
@ -70,6 +70,9 @@
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: .5rem;
|
margin-bottom: .5rem;
|
||||||
}
|
}
|
||||||
|
textarea {
|
||||||
|
min-height: 7rem;
|
||||||
|
}
|
||||||
.button-green {
|
.button-green {
|
||||||
color: $white;
|
color: $white;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
Loading…
Reference in New Issue