summaryrefslogtreecommitdiffstats
path: root/comm/mail/extensions/openpgp/content/ui/composeKeyStatus.xhtml
blob: fc0192a8a652a617a255e27af1b2328f461bb546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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>