mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Add avatar contact img description
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
c5da4b8737
commit
9d904b144b
6 changed files with 13 additions and 8 deletions
|
|
@ -55,6 +55,11 @@ const Contact = Model.extend({
|
|||
} else {
|
||||
this.set('hasManyActions', true)
|
||||
}
|
||||
|
||||
const fullName = this.get('fullName')
|
||||
if (this.get('avatar') && fullName) {
|
||||
this.set('avatarLabel', t('core', 'Avatar of {fullName}', { fullName }))
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
{{#if contact.profileUrl}}
|
||||
{{#if contact.profileTitle}}
|
||||
<a class="profile-link--avatar" href="{{contact.profileUrl}}">
|
||||
<img src="{{contact.avatar}}&size=32" class="avatar" srcset="{{contact.avatar}}&size=32 1x, {{contact.avatar}}&size=64 2x, {{contact.avatar}}&size=128 4x" alt="">
|
||||
<img src="{{contact.avatar}}&size=32" class="avatar" srcset="{{contact.avatar}}&size=32 1x, {{contact.avatar}}&size=64 2x, {{contact.avatar}}&size=128 4x" alt="{{contact.avatarLabel}}">
|
||||
</a>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<img src="{{contact.avatar}}&size=32" class="avatar" srcset="{{contact.avatar}}&size=32 1x, {{contact.avatar}}&size=64 2x, {{contact.avatar}}&size=128 4x" alt="">
|
||||
<img src="{{contact.avatar}}&size=32" class="avatar" srcset="{{contact.avatar}}&size=32 1x, {{contact.avatar}}&size=64 2x, {{contact.avatar}}&size=128 4x" alt="{{contact.avatarLabel}}">
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#if contact.profileUrl}}
|
||||
|
|
|
|||
4
dist/core-login.js
vendored
4
dist/core-login.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-login.js.map
vendored
2
dist/core-login.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/core-main.js
vendored
4
dist/core-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-main.js.map
vendored
2
dist/core-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue