summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/downloads/content/aboutDownloads.xhtml
blob: fdc570c06fc93d697b67e6fa4c3f048d9302fb4c (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
95
96
97
98
<?xml version="1.0" encoding="UTF-8"?>
<!-- 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"?>
<?xml-stylesheet href="chrome://messenger/skin/messenger.css"?>
<?xml-stylesheet href="chrome://global/skin/in-content/common.css"?>
<?xml-stylesheet href="chrome://messenger/skin/downloads/aboutDownloads.css"?>

<!DOCTYPE html [
<!ENTITY % aboutDownloadsDTD SYSTEM "chrome://messenger/locale/aboutDownloads.dtd">
%aboutDownloadsDTD;
]>

<html id="aboutDownloads" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      xmlns:html="http://www.w3.org/1999/xhtml"
      scrolling="false"
      lightweightthemes="true">
<head>
  <title>&aboutDownloads.title;</title>
  <script defer="defer" src="chrome://messenger/content/globalOverlay.js"></script>
  <script defer="defer" src="chrome://global/content/editMenuOverlay.js"></script>
  <script defer="defer" src="chrome://messenger/content/downloads/aboutDownloads.js"></script>
  <meta http-equiv="Content-Security-Policy" content="default-src chrome:; img-src chrome: moz-icon:; object-src 'none'; script-src chrome: 'unsafe-inline'" />
  <meta name="color-scheme" content="light dark" />
  <link rel="icon" href="chrome://messenger/skin/icons/new/compact/download.svg" />
</head>
<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <commandset id="msgDownloadCommands"
              commandupdater="true"
              events="focus,select,contextmenu">
    <command id="msgDownloadsCmd_open"
             oncommand="goDoCommand('msgDownloadsCmd_open')"/>
    <command id="msgDownloadsCmd_show"
             oncommand="goDoCommand('msgDownloadsCmd_show')"/>
    <command id="msgDownloadsCmd_remove"
             oncommand="goDoCommand('msgDownloadsCmd_remove')"/>
    <command id="msgDownloadsCmd_clearDownloads"
             oncommand="goDoCommand('msgDownloadsCmd_clearDownloads')"/>
    <command id="msgDownloadsCmd_searchDownloads"
             oncommand="goDoCommand('msgDownloadsCmd_searchDownloads')"/>
  </commandset>

  <keyset id="downloadKeys">
    <key keycode="&cmd.searchDownloads.key;" modifiers="accel"
         oncommand="document.getElementById('searchBox').focus();"/>
  </keyset>

  <hbox id="downloadTopBox"
        align="center">
    <button id="clearDownloads"
            command="msgDownloadsCmd_clearDownloads"
            label="&cmd.clearList.label;"
            accesskey="&cmd.clearList.accesskey;"
            tooltiptext="&cmd.clearList.tooltip;"/>

    <spacer flex="1"/>
    <search-textbox id="searchBox"
                    class="themeableSearchBox"
                    command="msgDownloadsCmd_searchDownloads"
                    placeholder="&cmd.searchDownloads.label;"/>
  </hbox>

  <hbox id="downloadBottomBox" flex="1">
    <richlistbox id="msgDownloadsRichListBox"
                 flex="1"
                 seltype="multiple"
                 context="msgDownloadsContextMenu"
                 oncontextmenu="DownloadsView.onDownloadContextMenu();"/>
  </hbox>

  <menupopup id="msgDownloadsContextMenu">
    <menuitem command="msgDownloadsCmd_remove"
              class="msgDownloadRemoveFromHistoryMenuItem"
              label="&cmd.removeFromHistory.label;"
              accesskey="&cmd.removeFromHistory.accesskey;"/>
    <menuitem command="msgDownloadsCmd_open"
              label="&cmd.open.label;"
              accesskey="&cmd.open.accesskey;"/>
    <menuitem command="msgDownloadsCmd_show"
              class="msgDownloadShowMenuItem"
#ifdef XP_MACOSX
              label="&cmd.showMac.label;"
              accesskey="&cmd.showMac.accesskey;"
#else
              label="&cmd.show.label;"
              accesskey="&cmd.show.accesskey;"
#endif
              />
    <menuitem command="msgDownloadsCmd_clearDownloads"
              label="&cmd.clearList.label;"
              accesskey="&cmd.clearList.accesskey;"
              tooltiptext="&cmd.clearList.tooltip;"/>
  </menupopup>
</html:body>
</html>