mirror of https://github.com/zulip/zulip.git
analytics: Use activity_details_template.html for installation page.
This commit is contained in:
parent
9f0008372c
commit
1112cbc822
|
@ -279,17 +279,13 @@ def realm_summary_table() -> str:
|
|||
@require_server_admin
|
||||
@has_request_variables
|
||||
def get_installation_activity(request: HttpRequest) -> HttpResponse:
|
||||
counts_content: str = realm_summary_table()
|
||||
data = [
|
||||
("Counts", counts_content),
|
||||
]
|
||||
|
||||
title = "Installation Activity"
|
||||
content: str = realm_summary_table()
|
||||
title = "Installation activity"
|
||||
|
||||
return render(
|
||||
request,
|
||||
"analytics/activity.html",
|
||||
context=dict(data=data, title=title, is_home=True),
|
||||
"analytics/activity_details_template.html",
|
||||
context=dict(data=content, title=title, is_home=True),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -7,17 +7,12 @@
|
|||
<title>{{ title }} | Zulip analytics</title>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if not is_home %}
|
||||
<a class="show-all" href="/activity">Home</a>
|
||||
<br />
|
||||
{% endif %}
|
||||
|
||||
<h4>{{ title }} {% if realm_stats_link %}{{ realm_stats_link }}{% endif %}</h4>
|
||||
|
||||
{% if not is_home %}
|
||||
<ul class="nav nav-tabs">
|
||||
{% for name, activity in data %}
|
||||
<li {% if loop.first %} class="active" {% endif %}>
|
||||
|
@ -25,18 +20,13 @@
|
|||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<div class="tab-content">
|
||||
|
||||
{% for name, activity in data %}
|
||||
|
||||
<div class="tab-pane {% if loop.first %} active {% endif %}" id="{{ name|slugify }}">
|
||||
{{ activity|safe }}
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h3 style="text-align: center;">{{ num_active_sites }} active sites</h3>
|
||||
<h3 style="text-align: center;">Installation activity: {{ num_active_sites }} active sites</h3>
|
||||
|
||||
<p style="text-align: center;">{{ utctime }}</p>
|
||||
|
||||
|
|
Loading…
Reference in New Issue