mirror of https://github.com/zulip/zulip.git
analytics: Add copy email button for remote server support view.
This commit is contained in:
parent
5135acd9e3
commit
6621de6f07
|
@ -21,11 +21,17 @@
|
||||||
<div id="remote-server-query-results">
|
<div id="remote-server-query-results">
|
||||||
{% for remote_server in remote_servers %}
|
{% for remote_server in remote_servers %}
|
||||||
<div class="support-query-result">
|
<div class="support-query-result">
|
||||||
<span class="label">remote server</span>
|
<div class="remote-server-information">
|
||||||
<h3>{{ remote_server.hostname }}</h3>
|
<span class="label">remote server</span>
|
||||||
<b>Contact email</b>: {{ remote_server.contact_email }}<br />
|
<h3>{{ remote_server.hostname }}</h3>
|
||||||
<b>Last updated</b>: {{ remote_server.last_updated|timesince }} ago<br />
|
<b>Contact email</b>: {{ remote_server.contact_email }}
|
||||||
<b>Max monthly messages</b>: {{ remote_server_to_max_monthly_messages[remote_server.id] }}<br />
|
<a title="Copy email" class="copy-button" data-copytext="{{ remote_server.contact_email }}">
|
||||||
|
<i class="fa fa-copy"></i>
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
<b>Last updated</b>: {{ remote_server.last_updated|timesince }} ago<br />
|
||||||
|
<b>Max monthly messages</b>: {{ remote_server_to_max_monthly_messages[remote_server.id] }}<br />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -622,6 +622,7 @@ html_rules: List["Rule"] = [
|
||||||
"exclude": {
|
"exclude": {
|
||||||
"templates/zerver/emails",
|
"templates/zerver/emails",
|
||||||
"templates/analytics/realm_details.html",
|
"templates/analytics/realm_details.html",
|
||||||
|
"templates/analytics/remote_server_support.html",
|
||||||
"templates/analytics/support.html",
|
"templates/analytics/support.html",
|
||||||
},
|
},
|
||||||
"description": "`title` value should be translatable.",
|
"description": "`title` value should be translatable.",
|
||||||
|
|
|
@ -151,6 +151,10 @@ tr.admin td:first-child {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.remote-server-information {
|
||||||
|
padding-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.support-realm-icon {
|
.support-realm-icon {
|
||||||
max-width: 25px;
|
max-width: 25px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
Loading…
Reference in New Issue