2019-03-08 13:02:10 +01:00
|
|
|
{% extends "zerver/base.html" %}
|
2019-10-23 07:46:34 +02:00
|
|
|
{% set entrypoint = "support" %}
|
2019-03-08 13:02:10 +01:00
|
|
|
|
2020-10-23 02:43:28 +02:00
|
|
|
{# User activity. #}
|
2019-03-08 13:02:10 +01:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>Info</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2019-04-24 14:18:59 +02:00
|
|
|
<form class="new-style">
|
2019-03-08 13:02:10 +01:00
|
|
|
<center>
|
2021-04-21 00:46:14 +02:00
|
|
|
<input type="text" name="q" class="input-xxlarge search-query" placeholder="full names, emails, string_ids, organization URLs separated by commas" value="{{ request.GET.get('q', '') }}" autofocus />
|
2019-04-24 14:18:59 +02:00
|
|
|
<button type="submit" class="button small support-search-button">Search</button>
|
2019-03-08 13:02:10 +01:00
|
|
|
</center>
|
|
|
|
</form>
|
|
|
|
|
2020-11-17 19:18:22 +01:00
|
|
|
{% if error_message %}
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
<center>
|
|
|
|
{{ error_message }}
|
|
|
|
</center>
|
|
|
|
</div>
|
|
|
|
{% elif success_message %}
|
2019-03-08 13:02:10 +01:00
|
|
|
<div class="alert alert-success">
|
|
|
|
<center>
|
2020-11-18 11:30:39 +01:00
|
|
|
{{ success_message }}
|
2019-03-08 13:02:10 +01:00
|
|
|
</center>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div id="query-results">
|
|
|
|
{% for user in users %}
|
2019-09-11 13:40:45 +02:00
|
|
|
{% set realm = user.realm %}
|
2019-04-19 18:17:41 +02:00
|
|
|
<div class="support-query-result new-style">
|
2019-03-08 13:02:10 +01:00
|
|
|
<span class="label">user</span>
|
|
|
|
<h3>{{ user.full_name }}</h3>
|
2021-04-21 00:46:14 +02:00
|
|
|
<b>Email</b>: {{ user.delivery_email }}<br />
|
|
|
|
<b>Date joined</b>: {{ user.date_joined|timesince }} ago<br />
|
|
|
|
<b>Is active</b>: {{ user.is_active }}<br />
|
|
|
|
<b>Role</b>: {{ user.get_role_name() }}<br />
|
|
|
|
<hr />
|
2019-03-08 13:02:10 +01:00
|
|
|
<div>
|
2019-09-11 13:40:45 +02:00
|
|
|
{% include "analytics/realm_details.html" %}
|
2019-03-08 13:02:10 +01:00
|
|
|
</div>
|
2021-04-21 00:46:14 +02:00
|
|
|
<hr />
|
2019-03-08 13:02:10 +01:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% for realm in realms %}
|
2019-04-19 18:17:41 +02:00
|
|
|
<div class="support-query-result new-style">
|
2019-09-11 13:40:45 +02:00
|
|
|
{% include "analytics/realm_details.html" %}
|
2019-03-08 13:02:10 +01:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
2019-09-18 15:04:36 +02:00
|
|
|
{% for confirmation in confirmations %}
|
|
|
|
{% set object = confirmation.object %}
|
|
|
|
<div class="support-query-result new-style">
|
|
|
|
{% if confirmation.type == Confirmation.USER_REGISTRATION %}
|
|
|
|
<span class="label">preregistration user</span>
|
|
|
|
{% set email = object.email %}
|
|
|
|
{% set realm = object.realm %}
|
|
|
|
{% set show_realm_details = True %}
|
|
|
|
{% elif confirmation.type == Confirmation.REALM_CREATION %}
|
|
|
|
<span class="label">preregistration user</span>
|
|
|
|
<span class="label">realm creation</span>
|
|
|
|
{% set email = object.email %}
|
|
|
|
{% set show_realm_details = False %}
|
|
|
|
{% elif confirmation.type == Confirmation.INVITATION %}
|
|
|
|
<span class="label">preregistration user</span>
|
|
|
|
<span class="label">invite</span>
|
|
|
|
{% set email = object.email %}
|
|
|
|
{% set realm = object.realm %}
|
|
|
|
{% set show_realm_details = True %}
|
|
|
|
{% elif confirmation.type == Confirmation.MULTIUSE_INVITE %}
|
|
|
|
<span class="label">multiuse invite</span>
|
|
|
|
{% set realm = object.realm %}
|
|
|
|
{% set show_realm_details = False %}
|
|
|
|
{% elif confirmation.type == Confirmation.REALM_REACTIVATION %}
|
|
|
|
<span class="label">realm reactivation</span>
|
|
|
|
{% set realm = object %}
|
|
|
|
{% set show_realm_details = False %}
|
|
|
|
{% endif %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
|
|
|
<br />
|
2019-09-18 15:04:36 +02:00
|
|
|
{% if email %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<b>Email</b>: {{ email }}<br />
|
2019-09-18 15:04:36 +02:00
|
|
|
{% endif %}
|
|
|
|
<b>Link</b>: {{ confirmation.url }}
|
|
|
|
<a title="Copy link" class="copy-button" data-copytext="{{ confirmation.url }}">
|
|
|
|
<i class="fa fa-copy"></i>
|
2021-04-21 00:46:14 +02:00
|
|
|
</a><br />
|
|
|
|
<b>Expires in</b>: {{ confirmation.expires_in }}<br />
|
2019-09-18 15:04:36 +02:00
|
|
|
{% if confirmation.link_status %}
|
|
|
|
<b>Status</b>: {{ confirmation.link_status }}
|
|
|
|
{% endif %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2019-09-18 15:04:36 +02:00
|
|
|
{% if show_realm_details %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<hr />
|
2019-09-18 15:04:36 +02:00
|
|
|
<div>
|
|
|
|
{% include "analytics/realm_details.html" %}
|
|
|
|
</div>
|
|
|
|
{% elif realm %}
|
|
|
|
<b>Realm</b>: {{ realm.string_id }}
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2019-09-18 15:04:36 +02:00
|
|
|
{% endif %}
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2019-09-18 15:04:36 +02:00
|
|
|
</div>
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2019-09-18 15:04:36 +02:00
|
|
|
{% endfor %}
|
2019-03-08 13:02:10 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|