The communications platform that puts data protection first.
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.
 
 
 
 
 
Rocket.Chat/client/views/admin/adminStatistics.html

120 lines
3.5 KiB

<template name="adminStatistics">
<section class="page-container page-list">
<head class="fixed-title">
{{> burger}}
<h2>
<span class="room-title">{{_ "Statistics"}}</span>
</h2>
</head>
<div class="content">
{{#unless hasPermission 'view-statistics'}}
<p>You are not authorized to view this page.</p>
{{else}}
{{#if isReady}}
<table class="statistics-table">
<tr>
<th>{{_ "Stats_Total_Users"}}</th>
<td>{{statistics.totalUsers}}</td>
</tr>
<tr>
<th>{{_ "Stats_Active_Users"}}</th>
<td>{{statistics.activeUsers}}</td>
</tr>
<tr>
<th>{{_ "Stats_Non_Active_Users"}}</th>
<td>{{statistics.nonActiveUsers}}</td>
</tr>
<tr>
<th>{{_ "Stats_Online_Users"}}</th>
<td>{{statistics.onlineUsers}}</td>
</tr>
<tr>
<th>{{_ "Stats_Away_Users"}}</th>
<td>{{statistics.awayUsers}}</td>
</tr>
<tr>
<th>{{_ "Stats_Offline_Users"}}</th>
<td>{{statistics.offlineUsers}}</td>
</tr>
<tr>
<th>{{_ "Stats_Total_Rooms"}}</th>
<td>{{statistics.totalRooms}}</td>
</tr>
<tr>
<th>{{_ "Stats_Total_Channels"}}</th>
<td>{{statistics.totalChannels}}</td>
</tr>
<tr>
<th>{{_ "Stats_Total_Private_Groups"}}</th>
<td>{{statistics.totalPrivateGroups}}</td>
</tr>
<tr>
<th>{{_ "Stats_Total_Direct_Messages"}}</th>
<td>{{statistics.totalDirect}}</td>
</tr>
<tr>
<th>{{_ "Stats_Total_Messages"}}</th>
<td>{{statistics.totalMessages}}</td>
</tr>
<tr>
<th>{{_ "Stats_Max_Room_Users"}}</th>
<td>{{statistics.maxRoomUsers}}</td>
</tr>
<tr>
<th>{{_ "Stats_Avg_Channel_Users"}}</th>
<td>{{numFormat statistics.avgChannelUsers}}</td>
</tr>
<tr>
<th>{{_ "Stats_Avg_Private_Group_Users"}}</th>
<td>{{numFormat statistics.avgPrivateGroupUsers}}</td>
</tr>
<tr>
<th>{{_ "Stats_OS_Type"}}</th>
<td>{{statistics.os.type}}</td>
</tr>
<tr>
<th>{{_ "Stats_OS_Platform"}}</th>
<td>{{statistics.os.platform}}</td>
</tr>
<tr>
<th>{{_ "Stats_OS_Arch"}}</th>
<td>{{statistics.os.arch}}</td>
</tr>
<tr>
<th>{{_ "Stats_OS_Release"}}</th>
<td>{{statistics.os.release}}</td>
</tr>
<tr>
<th>{{_ "Stats_OS_Uptime"}}</th>
<td>{{humanReadable statistics.os.uptime}}</td>
</tr>
<tr>
<th>{{_ "Stats_OS_Loadavg"}}</th>
<td>{{numFormat statistics.os.loadavg.[0]}}, {{numFormat statistics.os.loadavg.[1]}}, {{numFormat statistics.os.loadavg.[2]}}</td>
</tr>
<tr>
<th>{{_ "Stats_OS_Totalmem"}}</th>
<td>{{inGB statistics.os.totalmem}}</td>
</tr>
<tr>
<th>{{_ "Stats_OS_Freemem"}}</th>
<td>{{inGB statistics.os.freemem}}</td>
</tr>
<tr>
<th>{{_ "Stats_OS_Cpus"}}</th>
<td>{{statistics.os.cpus.length}}</td>
</tr>
</table>
{{else}}
{{_ "Please_wait_statistics"}}
{{/if}}
{{/unless}}
<div style="margin: 30px 0">
<label for="opt-out-statistics"><input type="checkbox" value="1" name="opt-out-statistics" id="opt-out-statistics" checked="{{optOut}}"> {{_ "Opt_out_statistics"}}</label>
<div id="opt-out-warning" class="alert-warning" style="margin-top: 10px; padding: 10px;">
{{_ "Opt_out_statistics_warning"}}
</div>
</div>
</div>
</section>
</template>