Skip to content

Commit acef539

Browse files
devsekar-1992artonge
authored andcommitted
Wrap contact search result in a link
Signed-off-by: Gnana Sekar <[email protected]> Signed-off-by: Louis Chemineau <[email protected]>
1 parent 7ff60b8 commit acef539

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

core/src/OC/contactsmenu/contact.handlebars

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,22 @@
2727
<div class="email-address">{{contact.emailAddresses}}</div>
2828
</a>
2929
{{/if}}
30+
{{else if contact.topAction}}
31+
<a class="body" href="{{contact.topAction.hyperlink}}">
32+
<div class="full-name">{{contact.fullName}}</div>
33+
<div class="last-message">{{contact.lastMessage}}</div>
34+
<div class="email-address">{{contact.emailAddresses}}</div>
35+
</a>
36+
<a class="top-action" href="{{contact.topAction.hyperlink}}" title="{{contact.topAction.title}}">
37+
<img src="{{contact.topAction.icon}}" alt="{{contact.topAction.title}}">
38+
</a>
3039
{{else}}
3140
<div class="body">
3241
<div class="full-name">{{contact.fullName}}</div>
3342
<div class="last-message">{{contact.lastMessage}}</div>
3443
<div class="email-address">{{contact.emailAddresses}}</div>
3544
</div>
3645
{{/if}}
37-
{{#if contact.topAction}}
38-
<a class="top-action" href="{{contact.topAction.hyperlink}}" title="{{contact.topAction.title}}">
39-
<img src="{{contact.topAction.icon}}" alt="{{contact.topAction.title}}">
40-
</a>
41-
{{/if}}
4246
{{#if contact.hasTwoActions}}
4347
<a class="second-action" href="{{contact.secondAction.hyperlink}}" title="{{contact.secondAction.title}}">
4448
<img src="{{contact.secondAction.icon}}" alt="{{contact.secondAction.title}}">

dist/core-login.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-login.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)