diff options
Diffstat (limited to 'comm/mail/extensions/openpgp/content/ui/composeKeyStatus.xhtml')
-rw-r--r-- | comm/mail/extensions/openpgp/content/ui/composeKeyStatus.xhtml | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/comm/mail/extensions/openpgp/content/ui/composeKeyStatus.xhtml b/comm/mail/extensions/openpgp/content/ui/composeKeyStatus.xhtml new file mode 100644 index 0000000000..fc0192a8a6 --- /dev/null +++ b/comm/mail/extensions/openpgp/content/ui/composeKeyStatus.xhtml @@ -0,0 +1,94 @@ +<?xml version="1.0"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> +<?xml-stylesheet href="chrome://messenger/skin/openpgp/openPgpComposeStatus.css" type="text/css"?> +<?xml-stylesheet href="chrome://messenger/skin/variables.css" type="text/css"?> +<?xml-stylesheet href="chrome://messenger/skin/colors.css" type="text/css"?> +<?xml-stylesheet href="chrome://messenger/skin/themeableDialog.css" type="text/css"?> + +<window + data-l10n-id="openpgp-compose-key-status-title" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" + style="width: 40em; height: 25em" + persist="width height" + lightweightthemes="true" + onload="onLoad();" +> + <dialog id="composeKeyStatus" buttons="accept"> + <script src="chrome://openpgp/content/ui/composeKeyStatus.js" /> + <script> + <![CDATA[ + function resizeColumns() { + let list = document.getElementById("infolist"); + let cols = list.getElementsByTagName("treecol"); + list.style.setProperty("--recipientWidth", cols[0].getBoundingClientRect().width + "px"); + list.style.setProperty("--statusWidth", cols[1].getBoundingClientRect().width + "px"); + } + addEventListener("load", resizeColumns, { once: true }); + addEventListener("resize", resizeColumns); + ]]> + </script> + <script src="chrome://messenger/content/dialogShadowDom.js" /> + + <linkset> + <html:link rel="localization" href="branding/brand.ftl" /> + <html:link + rel="localization" + href="messenger/openpgp/composeKeyStatus.ftl" + /> + </linkset> + + <description data-l10n-id="openpgp-compose-key-status-intro-need-keys" /> + + <separator class="thin" /> + <label + data-l10n-id="openpgp-compose-key-status-keys-heading" + control="infolist" + /> + + <richlistbox + id="infolist" + class="theme-listbox" + flex="1" + onselect="onSelectionChange(event);" + > + <treecols> + <treecol + id="recipientComposeKeyCol" + data-l10n-id="openpgp-compose-key-status-recipient" + /> + <treecol + id="statusComposeKeyCol" + data-l10n-id="openpgp-compose-key-status-status" + /> + </treecols> + </richlistbox> + <hbox pack="start"> + <button + id="detailsButton" + disabled="true" + data-l10n-id="openpgp-compose-key-status-open-details" + oncommand="viewSelectedEmail();" + /> + </hbox> + + <separator class="thin" /> + + <vbox flex="1"> + <html:span + class="tail-with-learn-more" + data-l10n-id="openpgp-compose-general-info-alias" + ></html:span> + <label + is="text-link" + id="openPgpAliasLearnMore" + href="https://support.mozilla.org/kb/openpgp-recipient-alias-configuration" + data-l10n-id="openpgp-compose-general-info-alias-learn-more" + /> + </vbox> + </dialog> +</window> |