FEATURE: Improve avatar education link (#7240)

* Make profile_path more direct to setting

* Add id to profile picture setting for easy linking
This commit is contained in:
tshenry 2019-03-22 02:20:48 -07:00 committed by Jeff Atwood
parent 839a54b97b
commit 48d0465f72
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@
{{#unless siteSettings.sso_overrides_avatar}}
<div class="control-group pref-avatar">
<label class="control-label">{{i18n 'user.avatar.title'}}</label>
<label class="control-label" id="profile-picture">{{i18n 'user.avatar.title'}}</label>
<div class="controls">
{{! we want the "huge" version even though we're downsizing it in CSS }}
{{bound-avatar model "huge"}}

View File

@ -85,7 +85,7 @@ class ComposerMessagesFinder
{
id: 'avatar',
templateName: 'education',
body: PrettyText.cook(I18n.t('education.avatar', profile_path: "/u/#{@user.username_lower}"))
body: PrettyText.cook(I18n.t('education.avatar', profile_path: "/u/#{@user.username_lower}/preferences/account#profile-picture"))
}
end