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(),