2017-02-07 19:42:53 +01:00
|
|
|
{% extends "zerver/base.html" %}
|
|
|
|
|
|
|
|
{% block customhead %}
|
|
|
|
{% stylesheet 'portico' %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="app portico-page">
|
2017-01-11 21:44:59 +01:00
|
|
|
|
|
|
|
{{ minified_js('stats')|safe }}
|
|
|
|
{% stylesheet 'stats' %}
|
|
|
|
|
|
|
|
<div class="sidebar">
|
|
|
|
<nav class="nav">
|
2017-02-02 01:07:41 +01:00
|
|
|
<p class="nav-subtitle">Messages Sent</p>
|
2017-01-11 21:44:59 +01:00
|
|
|
<a href="#messages_timescale_anchor" class="nav-link">Messages Sent Over Time</a>
|
|
|
|
<a href="#messages_by_client_anchor" class="nav-link">Messages Sent by Client</a>
|
|
|
|
<a href="#messages_by_type_anchor" class="nav-link">Messages Sent by Recipient Type</a>
|
|
|
|
<p class="nav-subtitle">Users</p>
|
|
|
|
<a href="#users_anchor" class="nav-link">Number of Users</a>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
<div class="page-content">
|
2016-12-20 02:30:08 +01:00
|
|
|
<div id="id_stats_errors" class="alert alert-error"></div>
|
2017-01-11 21:44:59 +01:00
|
|
|
<h1 class="analytics-page-header">Analytics</h1>
|
|
|
|
<div class="center-container">
|
|
|
|
<div class="center-block">
|
2017-02-02 01:07:41 +01:00
|
|
|
<p class="graph-title" id="messages_timescale_anchor">Messages Sent Over Time</p>
|
2017-01-11 21:44:59 +01:00
|
|
|
<div id="graph_container">
|
|
|
|
<div id="button_container">
|
|
|
|
<p id="button_label"> Aggregation </p>
|
|
|
|
<button class="button" type="button" id='hourly_button'> Hourly </button>
|
|
|
|
<button class="button" type="button" id='daily_button'> Daily </button>
|
|
|
|
<button class="button" type="button" id='weekly_button'> Weekly </button>
|
|
|
|
<button class="button" type="button" id='cumulative_button'> Cumulative </button>
|
|
|
|
</div>
|
|
|
|
<div id="id_messages_sent_over_time"></div>
|
|
|
|
<div id="hoverinfo">
|
|
|
|
<span id="hover_date"></span>
|
|
|
|
<span id="hover_humans"></span>
|
|
|
|
<span id="hover_humans_value"></span>
|
|
|
|
<span id="hover_bots"></span>
|
|
|
|
<span id="hover_bots_value"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-20 02:30:08 +01:00
|
|
|
</div>
|
2017-01-11 21:44:59 +01:00
|
|
|
<div id="pie_container">
|
|
|
|
<div id="pie_messages_sent_by_client">
|
2017-02-02 01:07:41 +01:00
|
|
|
<p class="graph-title" id="messages_by_client_anchor">Messages Sent by Client</p>
|
2017-01-11 21:44:59 +01:00
|
|
|
<div id="id_messages_sent_by_client"></div>
|
2017-02-02 01:07:41 +01:00
|
|
|
<div id="pie_messages_sent_by_client_total"> </div>
|
2017-01-11 21:44:59 +01:00
|
|
|
<button class="pie-button" type="button" id='messages_by_client_user_button'> Me </button>
|
|
|
|
<button class="pie-button" type="button" id='messages_by_client_realm_button'> Everyone </button>
|
|
|
|
<button class="pie-button" type="button" id='messages_by_client_ten_days_button'> Last 10 Days </button>
|
|
|
|
<button class="pie-button" type="button" id='messages_by_client_thirty_days_button'> Last 30 Days </button>
|
|
|
|
<button class="pie-button" type="button" id='messages_by_client_cumulative_button'> All time </button>
|
|
|
|
</div>
|
|
|
|
<div id="pie_messages_sent_by_type">
|
2017-02-02 01:07:41 +01:00
|
|
|
<p class="graph-title" id="messages_by_type_anchor">Messages Sent by Recipient Type</p>
|
2017-01-11 21:44:59 +01:00
|
|
|
<div id="id_messages_sent_by_message_type"></div>
|
2017-02-02 01:07:41 +01:00
|
|
|
<div id="pie_messages_sent_by_type_total"> </div>
|
2017-01-11 21:44:59 +01:00
|
|
|
<button class="pie-button" type="button" id='messages_by_type_user_button'> Me </button>
|
|
|
|
<button class="pie-button" type="button" id='messages_by_type_realm_button'> Everyone </button>
|
|
|
|
<button class="pie-button" type="button" id='messages_by_type_ten_days_button'> Last 10 Days </button>
|
|
|
|
<button class="pie-button" type="button" id='messages_by_type_thirty_days_button'> Last 30 Days </button>
|
|
|
|
<button class="pie-button" type="button" id='messages_by_type_cumulative_button'> All time </button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="center-container">
|
|
|
|
<div class="center-block">
|
2017-02-02 01:07:41 +01:00
|
|
|
<p class="graph-title" id="users_anchor">Number of Users</p>
|
2017-01-11 21:44:59 +01:00
|
|
|
<div id="id_number_of_users"></div>
|
2017-02-02 01:07:41 +01:00
|
|
|
<div id="users_hover_info">
|
|
|
|
<span id="users_hover_date"></span>
|
|
|
|
<span id="users_hover_humans"></span>
|
|
|
|
<span id="users_hover_humans_value"></span>
|
|
|
|
</div>
|
|
|
|
<div id="users_total">
|
|
|
|
<span id="number_of_users">Total Users:</span>
|
|
|
|
<span id="number_of_users_total"> </span>
|
|
|
|
</div>
|
2017-01-11 21:44:59 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-02-07 19:42:53 +01:00
|
|
|
</div>
|
2017-01-11 21:44:59 +01:00
|
|
|
{% endblock %}
|