diff options
author | Gnana Sekar <developersekar1992@gmail.com> | 2022-04-04 18:31:10 +0530 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-04-11 17:13:33 +0200 |
commit | 7696e3f5c6eff22aace34dcd93b3ebf0e031972f (patch) | |
tree | c0aa84f0c2ee38a6027725859c2c00a18f0cf5e4 /core/src | |
parent | 682468ef5cda2d3aefed9cd5db80021da22bb593 (diff) | |
download | nextcloud-server-7696e3f5c6eff22aace34dcd93b3ebf0e031972f.tar.gz nextcloud-server-7696e3f5c6eff22aace34dcd93b3ebf0e031972f.zip |
Wrap contact search result in a link
Signed-off-by: Gnana Sekar <developersekar1992@gmail.com>
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/OC/contactsmenu/contact.handlebars | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/core/src/OC/contactsmenu/contact.handlebars b/core/src/OC/contactsmenu/contact.handlebars index e178469bd94..c8e9c2c497e 100644 --- a/core/src/OC/contactsmenu/contact.handlebars +++ b/core/src/OC/contactsmenu/contact.handlebars @@ -27,6 +27,15 @@ <div class="email-address">{{contact.emailAddresses}}</div> </a> {{/if}} +{{else if contact.topAction}} + <a class="body" href="{{contact.topAction.hyperlink}}"> + <div class="full-name">{{contact.fullName}}</div> + <div class="last-message">{{contact.lastMessage}}</div> + <div class="email-address">{{contact.emailAddresses}}</div> + </a> + <a class="top-action" href="{{contact.topAction.hyperlink}}" title="{{contact.topAction.title}}"> + <img src="{{contact.topAction.icon}}" alt="{{contact.topAction.title}}"> + </a> {{else}} <div class="body"> <div class="full-name">{{contact.fullName}}</div> @@ -34,11 +43,6 @@ <div class="email-address">{{contact.emailAddresses}}</div> </div> {{/if}} -{{#if contact.topAction}} -<a class="top-action" href="{{contact.topAction.hyperlink}}" title="{{contact.topAction.title}}"> - <img src="{{contact.topAction.icon}}" alt="{{contact.topAction.title}}"> -</a> -{{/if}} {{#if contact.hasTwoActions}} <a class="second-action" href="{{contact.secondAction.hyperlink}}" title="{{contact.secondAction.title}}"> <img src="{{contact.secondAction.icon}}" alt="{{contact.secondAction.title}}"> |