summaryrefslogtreecommitdiffstats
path: root/core/src/OC
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2021-10-14 08:28:54 +0000
committerChristopher Ng <chrng8@gmail.com>2021-10-19 04:59:36 +0000
commit3be9d3ca8fca4fb743a4d2f2ffe44a45fa9ffa6e (patch)
tree5519fb218db5daa3d0e16198f600d5646f7d0b1a /core/src/OC
parent309354852f12ae88d5eef05d311d6ebcba8ee762 (diff)
downloadnextcloud-server-3be9d3ca8fca4fb743a4d2f2ffe44a45fa9ffa6e.tar.gz
nextcloud-server-3be9d3ca8fca4fb743a4d2f2ffe44a45fa9ffa6e.zip
Profile frontend
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src/OC')
-rw-r--r--core/src/OC/contactsmenu/contact.handlebars40
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}}">