mirror of https://github.com/zulip/zulip.git
support: Show the first human user in realm search result.
This commit is contained in:
parent
e72dea1de6
commit
ab771e4b19
|
@ -618,8 +618,11 @@ class TestSupportEndpoint(ZulipTestCase):
|
|||
|
||||
def check_zulip_realm_query_result(result: HttpResponse) -> None:
|
||||
zulip_realm = get_realm("zulip")
|
||||
first_human_user = zulip_realm.get_first_human_user()
|
||||
assert first_human_user is not None
|
||||
self.assert_in_success_response(
|
||||
[
|
||||
f"<b>First human user</b>: {first_human_user.delivery_email}\n",
|
||||
f'<input type="hidden" name="realm_id" value="{zulip_realm.id}"',
|
||||
"Zulip Dev</h3>",
|
||||
'<option value="1" selected>Self hosted</option>',
|
||||
|
|
|
@ -69,6 +69,11 @@ tr.admin td:first-child {
|
|||
top: -2px;
|
||||
}
|
||||
|
||||
.support-realm-status-form {
|
||||
position: relative;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
.support-discount-form {
|
||||
position: relative;
|
||||
top: -50px;
|
||||
|
|
|
@ -19,7 +19,18 @@
|
|||
<i class="fa fa-copy"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
<form method="POST">
|
||||
<br>
|
||||
{% set first_human_user = realm.get_first_human_user() %}
|
||||
{% if first_human_user %}
|
||||
<b>First human user</b>: {{ first_human_user.delivery_email }}
|
||||
<a title="Copy emails" class="copy-button" data-copytext="{{ first_human_user.delivery_email }}">
|
||||
<i class="fa fa-copy"></i>
|
||||
</a>
|
||||
{% else %}
|
||||
<b>First human user</b>:
|
||||
{% endif %}
|
||||
|
||||
<form method="POST" class="support-realm-status-form">
|
||||
<b>Status</b>:<br>
|
||||
{{ csrf_input }}
|
||||
<input type="hidden" name="realm_id" value="{{ realm.id }}" />
|
||||
|
|
Loading…
Reference in New Issue