Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
analytics: Add copy email button for remote server support view.
Lauryn Menard6621de6f075e
diff --git a/templates/analytics/remote_server_support.html b/templates/analytics/remote_server_support.htmlindex 15c11791046..0f944fb726c 100644--- a/templates/analytics/remote_server_support.html+++ b/templates/analytics/remote_server_support.html@@ -21,11 +21,17 @@<div id="remote-server-query-results">{% for remote_server in remote_servers %}<div class="support-query-result">- <span class="label">remote server</span>- <h3>{{ remote_server.hostname }}</h3>- <b>Contact email</b>: {{ remote_server.contact_email }}<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 class="remote-server-information">+ <span class="label">remote server</span>+ <h3>{{ remote_server.hostname }}</h3>+ <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>Max monthly messages</b>: {{ remote_server_to_max_monthly_messages[remote_server.id] }}<br />+ </div></div>{% endfor %}</div>diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.pyindex a9a53d69e53..f8d92fb1abc 100644--- a/tools/linter_lib/custom_check.py+++ b/tools/linter_lib/custom_check.py@@ -622,6 +622,7 @@ html_rules: List["Rule"] = ["exclude": {"templates/zerver/emails","templates/analytics/realm_details.html",+ "templates/analytics/remote_server_support.html","templates/analytics/support.html",},"description": "`title` value should be translatable.",diff --git a/web/styles/portico/activity.css b/web/styles/portico/activity.cssindex f04bf7a8ba7..19d0fa19a5d 100644--- a/web/styles/portico/activity.css+++ b/web/styles/portico/activity.css@@ -151,6 +151,10 @@ tr.admin td:first-child {}}+.remote-server-information {+ padding-bottom: 15px;+}+.support-realm-icon {max-width: 25px;position: relative;