mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
5.0 KiB
119 lines
5.0 KiB
{if="$contacts->isNotEmpty()"}
|
|
<li class="subheader">
|
|
<div>
|
|
<p>{$c->__('page.contacts')}</p>
|
|
</div>
|
|
</li>
|
|
{loop="$contacts"}
|
|
<li
|
|
id="{$value->jid|cleanupId}"
|
|
title="{$value->jid}"
|
|
name="{$value->jid|cleanupId}-{$value->truename|cleanupId}-{$value->group|cleanupId}"
|
|
class="{if="$value->presence && $value->presence->value > 4"}faded{/if}"
|
|
>
|
|
{$url = $value->getPhoto('m')}
|
|
{if="$url"}
|
|
<span class="primary icon bubble
|
|
{if="!$value->presence || $value->presence->value > 4"}
|
|
disabled
|
|
{else}
|
|
status {$value->presence->presencekey}
|
|
{/if}"
|
|
style="background-image: url({$url});">
|
|
</span>
|
|
{else}
|
|
<span class="primary icon bubble color {$value->jid|stringToColor}
|
|
{if="!$value->presence || $value->presence->value > 4"}
|
|
disabled
|
|
{else}
|
|
status {$value->presence->presencekey}
|
|
{/if}"
|
|
>
|
|
<i class="material-icons">person</i>
|
|
</span>
|
|
{/if}
|
|
{if="$value->presences->count() > 0"}
|
|
{loop="$value->presences"}
|
|
{if="$value->capability && $value->capability->isJingle()"}
|
|
<span title="{$c->__('button.audio_call')}" class="control icon active gray"
|
|
onclick="VisioLink.openVisio('{$value->jid|echapJS}');">
|
|
<i class="material-icons">phone</i>
|
|
</span>
|
|
<span title="{$c->__('button.video_call')}" class="control icon active gray"
|
|
onclick="VisioLink.openVisio('{$value->jid|echapJS}', '', true);">
|
|
<i class="material-icons">videocam</i>
|
|
</span>
|
|
{break}
|
|
{/if}
|
|
{/loop}
|
|
{/if}
|
|
<span class="control icon active gray" onclick="Search.chat('{$value->jid|echapJS}')">
|
|
<i class="material-icons">comment</i>
|
|
</span>
|
|
<span class="control icon active gray" onclick="MovimUtils.reload('{$c->route('contact', $value->jid)}')">
|
|
<i class="material-icons">person</i>
|
|
</span>
|
|
<div>
|
|
<p class="normal line">
|
|
{$value->truename}
|
|
{if="$value->group"}
|
|
<span class="tag color {$value->group|stringToColor}">
|
|
{$value->group}
|
|
</span>
|
|
{/if}
|
|
{if="$value->presence && $value->presence->capability"}
|
|
<span class="second" title="{$value->presence->capability->name}">
|
|
<i class="material-icons">{$value->presence->capability->getDeviceIcon()}</i>
|
|
</span>
|
|
{/if}
|
|
|
|
{if="!in_array($value->subscription, ['', 'both'])"}
|
|
<span class="second">
|
|
{if="$value->subscription == 'to'"}
|
|
<i class="material-icons">arrow_upward</i>
|
|
{elseif="$value->subscription == 'from'"}
|
|
<i class="material-icons">arrow_downward</i>
|
|
{else}
|
|
<i class="material-icons">block</i>
|
|
{/if}
|
|
</span>
|
|
{/if}
|
|
</p>
|
|
|
|
{if="$value->presence && $value->presence->seen"}
|
|
<p>
|
|
{$c->__('last.title')} {$value->presence->seen|strtotime|prepareDate:true,true}
|
|
</p>
|
|
{elseif="$value->presence"}
|
|
<p>{$value->presence->presencetext}</p>
|
|
{/if}
|
|
</div>
|
|
</li>
|
|
{/loop}
|
|
|
|
{if="$contacts->count() > 7"}
|
|
<li class="showall active" onclick="Search.showCompleteRoster(this)">
|
|
<span class="primary icon gray">
|
|
<i class="material-icons">expand_more</i>
|
|
</span>
|
|
<div>
|
|
<p class="normal line">
|
|
{$c->__('search.show_complete_roster')}
|
|
<span class="second">{$contacts->count()} <i class="material-icons">people</i></span>
|
|
</p>
|
|
</div>
|
|
</li>
|
|
{/if}
|
|
{else}
|
|
<ul class="list thick">
|
|
<li>
|
|
<span class="primary icon blue">
|
|
<i class="material-icons">help</i>
|
|
</span>
|
|
<div>
|
|
<p>{$c->__('search.no_contacts_title')}</p>
|
|
<p>{$c->__('search.no_contacts_text')}</p>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
{/if}
|