mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	stats: Include Zulip and realm name in heading.
This commit is contained in:
		@@ -39,7 +39,8 @@ from typing import Any, Dict, List, Tuple, Optional, Sequence, Callable, Type, \
 | 
				
			|||||||
@zulip_login_required
 | 
					@zulip_login_required
 | 
				
			||||||
def stats(request):
 | 
					def stats(request):
 | 
				
			||||||
    # type: (HttpRequest) -> HttpResponse
 | 
					    # 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
 | 
					@has_request_variables
 | 
				
			||||||
def get_chart_data(request, user_profile, chart_name=REQ(),
 | 
					def get_chart_data(request, user_profile, chart_name=REQ(),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,7 +22,7 @@
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
<div class="page-content">
 | 
					<div class="page-content">
 | 
				
			||||||
  <div id="id_stats_errors" class="alert alert-error"></div>
 | 
					  <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-container">
 | 
				
			||||||
    <div class="center-block">
 | 
					    <div class="center-block">
 | 
				
			||||||
      <p class="graph-title" id="messages_timescale_anchor">Messages Sent Over Time</p>
 | 
					      <p class="graph-title" id="messages_timescale_anchor">Messages Sent Over Time</p>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user