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,12 +21,18 @@
|
||||||
<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">
|
||||||
|
<div class="remote-server-information">
|
||||||
<span class="label">remote server</span>
|
<span class="label">remote server</span>
|
||||||
<h3>{{ remote_server.hostname }}</h3>
|
<h3>{{ remote_server.hostname }}</h3>
|
||||||
<b>Contact email</b>: {{ remote_server.contact_email }}<br />
|
<b>Contact email</b>: {{ remote_server.contact_email }}
|
||||||
|
<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>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 />
|
<b>Max monthly messages</b>: {{ remote_server_to_max_monthly_messages[remote_server.id] }}<br />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</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