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.

41 lines
1.4 KiB

  1. <div id="statistics" class="tabelem paddedtop" title="{$c->__("statistics.title")}">
  2. <ul class="divided thick">
  3. <li class="subheader">
  4. {$c->__('statistics.sessions')} - {$sessions|count}
  5. </li>
  6. {loop="$sessions"}
  7. {$user = $c->getContact($value->username, $value->host)}
  8. <li class="condensed">
  9. {$url = $user->getPhoto('s')}
  10. {if="$url"}
  11. <span class="icon bubble">
  12. <img src="{$url}">
  13. </span>
  14. {else}
  15. <span class="icon bubble color {$user->jid|stringToColor}">
  16. <i class="md md-person"></i>
  17. </span>
  18. {/if}
  19. <span>{$user->getTrueName()} - {$value->username}@{$value->host} - {$value->domain}</span>
  20. <p>
  21. {if="isset($value->start)"}
  22. {$c->getTime($value->start)}
  23. {/if}
  24. </p>
  25. </li>
  26. {/loop}
  27. </ul>
  28. <h3>{$c->__('statistics.subscriptions')}</h3>
  29. <div class="card">
  30. <img src="{$cache_path}monthly.png">
  31. </div>
  32. <div class="card">
  33. <img src="{$cache_path}monthly_cumulated.png">
  34. </div>
  35. <script type="text/javascript">
  36. MovimWebsocket.attach(function() {
  37. MovimWebsocket.connection.admin("{$hash}");
  38. });
  39. </script>
  40. </div>