blob: 5875224d4cce2ff366a344f1c4b9b3e8c67ddf52 (
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
|
<?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"?>
<window
data-l10n-id="openpgp-one-recipient-status-title"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
style="width: 50em; height: 22em"
persist="width height"
onload="onLoad();"
>
<dialog id="oneRecipientStatus" buttons="accept">
<script src="chrome://openpgp/content/ui/oneRecipientStatus.js" />
<linkset>
<html:link
rel="localization"
href="messenger/openpgp/oneRecipientStatus.ftl"
/>
<html:link rel="localization" href="messenger/openpgp/openpgp.ftl" />
</linkset>
<script>
<![CDATA[
function resizeColumns() {
let list = document.getElementById("infolist");
let cols = list.getElementsByTagName("treecol");
list.style.setProperty("--keyWidth", cols[0].getBoundingClientRect().width + "px");
list.style.setProperty("--statusWidth", cols[1].getBoundingClientRect().width + "px");
list.style.setProperty("--issuedWidth", cols[2].getBoundingClientRect().width + "px");
list.style.setProperty("--expireWidth", cols[3].getBoundingClientRect().width - 5 + "px");
}
addEventListener("load", resizeColumns, { once: true });
addEventListener("resize", resizeColumns);
]]>
</script>
<description data-l10n-id="openpgp-one-recipient-status-instruction1" />
<separator class="thin" />
<description data-l10n-id="openpgp-one-recipient-status-instruction2" />
<separator class="thin" />
<label id="intro" control="infolist" />
<richlistbox
id="infolist"
class="theme-listbox"
flex="1"
onselect="onSelectionChange(event);"
>
<treecols>
<treecol
id="recipientKeyIdCol"
data-l10n-id="openpgp-one-recipient-status-key-id"
/>
<treecol
id="recipientStatusCol"
data-l10n-id="openpgp-one-recipient-status-status"
/>
<treecol
style="flex: 1 auto"
data-l10n-id="openpgp-one-recipient-status-created-date"
/>
<treecol
style="flex: 1 auto"
data-l10n-id="openpgp-one-recipient-status-expires-date"
/>
</treecols>
</richlistbox>
<hbox pack="start">
<button
id="detailsButton"
disabled="true"
data-l10n-id="openpgp-one-recipient-status-open-details"
oncommand="viewSelectedKey();"
/>
<button
id="discoverButton"
data-l10n-id="openpgp-one-recipient-status-discover"
oncommand="discoverKey();"
/>
</hbox>
</dialog>
</window>
|