mirror of https://github.com/zulip/zulip.git
support: Rename realm_admin_emails to get_realm_admin_emails_as_string.
This commit is contained in:
parent
f89af5b2b4
commit
97765798d7
|
@ -1429,14 +1429,14 @@ def support(request: HttpRequest) -> HttpResponse:
|
||||||
|
|
||||||
context["confirmations"] = confirmations
|
context["confirmations"] = confirmations
|
||||||
|
|
||||||
def realm_admin_emails(realm: Realm) -> str:
|
def get_realm_admin_emails_as_string(realm: Realm) -> str:
|
||||||
return ", ".join(
|
return ", ".join(
|
||||||
realm.get_human_admin_users()
|
realm.get_human_admin_users()
|
||||||
.order_by("delivery_email")
|
.order_by("delivery_email")
|
||||||
.values_list("delivery_email", flat=True)
|
.values_list("delivery_email", flat=True)
|
||||||
)
|
)
|
||||||
|
|
||||||
context["realm_admin_emails"] = realm_admin_emails
|
context["get_realm_admin_emails_as_string"] = get_realm_admin_emails_as_string
|
||||||
context["get_discount_for_realm"] = get_discount_for_realm
|
context["get_discount_for_realm"] = get_discount_for_realm
|
||||||
context["realm_icon_url"] = realm_icon_url
|
context["realm_icon_url"] = realm_icon_url
|
||||||
context["Confirmation"] = Confirmation
|
context["Confirmation"] = Confirmation
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
<a target="_blank" rel="noopener noreferrer" href="/stats/realm/{{ realm.string_id }}/">stats</a> |
|
<a target="_blank" rel="noopener noreferrer" href="/stats/realm/{{ realm.string_id }}/">stats</a> |
|
||||||
<a target="_blank" rel="noopener noreferrer" href="/realm_activity/{{ realm.string_id }}/">activity</a><br>
|
<a target="_blank" rel="noopener noreferrer" href="/realm_activity/{{ realm.string_id }}/">activity</a><br>
|
||||||
<b>Date created</b>: {{ realm.date_created|timesince }} ago<br>
|
<b>Date created</b>: {{ realm.date_created|timesince }} ago<br>
|
||||||
<b>Admins</b>: {{ realm_admin_emails(realm) }}
|
<b>Admins</b>: {{ get_realm_admin_emails_as_string(realm) }}
|
||||||
<a title="Copy emails" class="copy-button" data-copytext="{{ realm_admin_emails(realm) }}">
|
<a title="Copy emails" class="copy-button" data-copytext="{{ get_realm_admin_emails_as_string(realm) }}">
|
||||||
<i class="fa fa-copy"></i>
|
<i class="fa fa-copy"></i>
|
||||||
</a>
|
</a>
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
|
|
Loading…
Reference in New Issue