mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
33 lines
1.2 KiB
Smarty
33 lines
1.2 KiB
Smarty
<div id="statistics" class="tabelem" title="{$c->__("statistics.title")}">
|
|
<ul class="list divided thick">
|
|
<li class="subheader">
|
|
<p>{$c->__('statistics.sessions')} - {$sessions|count}</p>
|
|
</li>
|
|
{loop="$sessions"}
|
|
{$user = $c->getContact($value->username, $value->host)}
|
|
<li>
|
|
{$url = $user->getPhoto('s')}
|
|
{if="$url"}
|
|
<span class="primary icon bubble">
|
|
<img src="{$url}">
|
|
</span>
|
|
{else}
|
|
<span class="primary icon bubble color {$user->jid|stringToColor}">
|
|
<i class="zmdi zmdi-account"></i>
|
|
</span>
|
|
{/if}
|
|
<p>{$user->getTrueName()} - {$value->username}@{$value->host} - {$value->domain}</p>
|
|
<p>
|
|
{if="isset($value->start)"}
|
|
{$c->getTime($value->start)}
|
|
{/if}
|
|
</p>
|
|
</li>
|
|
{/loop}
|
|
</ul>
|
|
|
|
<h3 class="padded_top_bottom">{$c->__('statistics.subscriptions')}</h3>
|
|
|
|
<br />
|
|
<canvas id="monthly" width="800" height="400"></canvas>
|
|
</div>
|