diff options
Diffstat (limited to 'core/src/OC')
-rw-r--r-- | core/src/OC/contactsmenu/contact.handlebars | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/core/src/OC/contactsmenu/contact.handlebars b/core/src/OC/contactsmenu/contact.handlebars index e773550107f..e178469bd94 100644 --- a/core/src/OC/contactsmenu/contact.handlebars +++ b/core/src/OC/contactsmenu/contact.handlebars @@ -1,13 +1,39 @@ {{#if contact.avatar}} -<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=""> + {{#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=""> + </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=""> + {{/if}} {{else}} -<div class="avatar"></div> + {{#if contact.profileUrl}} + {{#if contact.profileTitle}} + <a class="profile-link--avatar" href="{{contact.profileUrl}}"> + <div class="avatar"></div> + </a> + {{/if}} + {{else}} + <div class="avatar"></div> + {{/if}} +{{/if}} +{{#if contact.profileUrl}} + {{#if contact.profileTitle}} + <a class="body profile-link--full-name" href="{{contact.profileUrl}}"> + <div class="full-name">{{contact.fullName}}</div> + <div class="last-message">{{contact.lastMessage}}</div> + <div class="email-address">{{contact.emailAddresses}}</div> + </a> + {{/if}} +{{else}} + <div class="body"> + <div class="full-name">{{contact.fullName}}</div> + <div class="last-message">{{contact.lastMessage}}</div> + <div class="email-address">{{contact.emailAddresses}}</div> + </div> {{/if}} -<div class="body"> - <div class="full-name">{{contact.fullName}}</div> - <div class="last-message">{{contact.lastMessage}}</div> - <div class="email-address">{{contact.emailAddresses}}</div> -</div> {{#if contact.topAction}} <a class="top-action" href="{{contact.topAction.hyperlink}}" title="{{contact.topAction.title}}"> <img src="{{contact.topAction.icon}}" alt="{{contact.topAction.title}}"> |