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/Statistics/statistics.tpl
2015-12-21 22:59:03 +01:00

41 lines
1.5 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>
<div class="card">
<img src="{$cache_path}monthly.png">
</div>
<div class="card">
<img src="{$cache_path}monthly_cumulated.png">
</div>
<script type="text/javascript">
MovimWebsocket.attach(function() {
MovimWebsocket.connection.admin("{$hash}");
});
</script>
</div>