stats: Include Zulip and realm name in heading.

This commit is contained in:
Tim Abbott 2017-02-07 11:22:57 -08:00
parent ac5c505d3c
commit ec52322ae1
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,8 @@ from typing import Any, Dict, List, Tuple, Optional, Sequence, Callable, Type, \
@zulip_login_required
def stats(request):
# type: (HttpRequest) -> HttpResponse
return render_to_response('analytics/stats.html')
return render_to_response('analytics/stats.html',
context=dict(realm_name = request.user.realm.name))
@has_request_variables
def get_chart_data(request, user_profile, chart_name=REQ(),

View File

@ -22,7 +22,7 @@
</div>
<div class="page-content">
<div id="id_stats_errors" class="alert alert-error"></div>
<h1 class="analytics-page-header">Analytics</h1>
<h1 class="analytics-page-header">Zulip Analytics for {{ realm_name }}</h1>
<div class="center-container">
<div class="center-block">
<p class="graph-title" id="messages_timescale_anchor">Messages Sent Over Time</p>