1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/app/widgets/Chats/_chats_add.tpl

49 lines
1.8 KiB
Smarty
Raw Normal View History

<section class="scroll">
<h3>{$c->__('chats.add')}</h3>
2015-12-21 22:59:03 +01:00
<ul class="list active" id="add_extend">
<li class="subheader">
<p>{$c->__('chats.frequent')}</p>
</li>
{loop="$top"}
{if="!in_array($value->jid, $chats)"}
2015-12-21 22:59:03 +01:00
<li class="{if="$value->last > 60"} inactive{/if}"
onclick="Chats_ajaxOpen('{$value->jid}'); Dialog.clear()">
{$url = $value->getPhoto('s')}
{if="$url"}
2015-12-21 22:59:03 +01:00
<span class="primary icon bubble
{if="$value->value"}
status {$presencestxt[$value->value]}
{/if}">
<img src="{$url}">
</span>
{else}
2015-12-21 22:59:03 +01:00
<span class="primary icon bubble color {$value->jid|stringToColor}
{if="$value->value"}
status {$presencestxt[$value->value]}
{/if}">
<i class="zmdi zmdi-account"></i>
</span>
{/if}
2015-12-21 22:59:03 +01:00
<p class="line">{$value->getTrueName()}</p>
<p class="line">{$value->jid}</p>
</li>
{/if}
{/loop}
<li onclick="Chats_ajaxAddExtend()">
2015-12-21 22:59:03 +01:00
<span class="primary icon">
<i class="zmdi zmdi-plus"></i>
</span>
2015-12-21 22:59:03 +01:00
<p class="normal">{$c->__('chats.more')}</p>
</li>
</ul>
<br />
<!--<div id="search_results">
</div>-->
</section>
<div>
<a onclick="Dialog.clear()" class="button flat">
{$c->__('button.close')}
</a>
</div>