4
<!ENTITY % extensionsDTD SYSTEM "chrome://mozapps/locale/extensions/extensions.dtd"> %extensionsDTD;
7
<bindings xmlns="http://www.mozilla.org/xbl"
8
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
9
xmlns:xbl="http://www.mozilla.org/xbl">
11
<binding id="richlistitem" extends="chrome://mozapps/content/extensions/extensions.xml#addon-generic">
13
<xul:hbox anonid="warning-container" align="center"
15
<xul:image class="warning-icon"/>
16
<xul:label anonid="warning" flex="1"/>
17
<xul:label anonid="warning-link" class="text-link"/>
18
<xul:button anonid="warning-btn" class="button-link"/>
20
<xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
22
<xul:hbox anonid="error-container" align="center"
24
<xul:image class="error-icon"/>
25
<xul:label anonid="error" flex="1"/>
26
<xul:label anonid="error-link" class="text-link"/>
27
<xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
30
<xul:hbox anonid="pending-container" align="left"
32
<xul:image class="pending-icon"/>
33
<xul:label anonid="pending" flex="1"/>
34
<xul:spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
35
<xul:vbox align="end">
36
<xul:button anonid="restart-btn" class="button-link"
37
label="&addon.restartNow.label;"
38
oncommand="document.getBindingParent(this).restart();"/>
39
<xul:button anonid="undo-btn" class="button-link"
40
label="&addon.undoAction.label;"
41
tooltipText="&addon.undoAction.tooltip;"
42
oncommand="document.getBindingParent(this).undo(); /*AiOS_Addons.hideNotification();*/"/>
48
<xul:vbox align="center" pack="start" class="icon-container">
49
<xul:image anonid="icon" class="icon"/>
52
<xul:hbox align="start">
54
<xul:hbox class="name-container">
55
<xul:label anonid="name" class="name" crop="end" flex="1"
56
xbl:inherits="value=name,tooltiptext=name"/>
57
<xul:label anonid="version" class="version"/>
59
<xul:label class="disabled-postfix" value="&addon.disabled.postfix;"/>
60
<xul:label class="update-postfix" value="&addon.update.postfix;"/>
61
<xul:spacer flex="5000"/> <!-- Necessary to make the name crop -->
64
<xul:label anonid="creator" class="creator"/>
65
<xul:spacer flex="1" />
66
<xul:label anonid="date-updated" class="date-updated" unknown="&addon.unknownDate;" />
71
<xul:hbox flex="1" orient="vertical" class="aios-container">
73
<xul:hbox align="center" class="description-container">
74
<xul:label flex="1" anonid="description" class="description" crop="end"/>
75
<xul:button anonid="details-btn" class="details button-link"
76
label="&addon.details.label;"
77
tooltiptext="&addon.details.tooltip;"
78
oncommand="document.getBindingParent(this).showInDetailView();"/>
79
<xul:spacer flex="5000"/> <!-- Necessary to make the description crop -->
81
<xul:vbox anonid="relnotes-container" class="relnotes-container">
83
<xul:label class="relnotes-header" value="&addon.releaseNotes.label;"/>
84
<xul:label anonid="relnotes-loading" value="&addon.loadingReleaseNotes.label;"/>
85
<xul:label anonid="relnotes-error" hidden="true"
86
value="&addon.errorLoadingReleaseNotes.label;"/>
87
<xul:vbox anonid="relnotes" class="relnotes"/>
89
<xul:hbox pack="start">
90
<xul:button anonid="relnotes-toggle-btn" class="relnotes-toggle"
91
hidden="true" label="&cmd.showReleaseNotes.label;"
92
tooltiptext="&cmd.showReleaseNotes.tooltip;"
93
showlabel="&cmd.showReleaseNotes.label;"
94
showtooltip="&cmd.showReleaseNotes.tooltip;"
95
hidelabel="&cmd.hideReleaseNotes.label;"
96
hidetooltip="&cmd.hideReleaseNotes.tooltip;"
97
oncommand="document.getBindingParent(this).toggleReleaseNotes();"/>
102
<xul:hbox class="status-container" pack="end">
103
<xul:hbox anonid="checking-update" hidden="true">
104
<xul:image class="spinner"/>
105
<xul:label value="&addon.checkingForUpdates.label;"/>
107
<xul:vbox anonid="update-available" class="update-available"
108
hidden="true" align="end">
109
<xul:checkbox anonid="include-update" class="include-update"
110
label="&addon.includeUpdate.label;" checked="true"
111
oncommand="document.getBindingParent(this).onIncludeUpdateChanged();"/>
112
<xul:hbox align="center">
114
<xul:label class="update-available-notice"
115
value="&addon.updateAvailable.label;"/>
116
<xul:button anonid="update-btn" class="addon-control update"
117
label="&addon.updateNow.label;"
118
tooltiptext="&addon.updateNow.tooltip;"
119
oncommand="document.getBindingParent(this).upgrade();"/>
122
<xul:hbox anonid="install-status" class="install-status"
125
<xul:hbox anonid="control-container" class="control-container"
127
<xul:button anonid="preferences-btn"
128
class="addon-control preferences"
129
label="&cmd.showPreferencesWin.label;"
130
tooltiptext="&cmd.showPreferencesWin.tooltip;"
131
oncommand="document.getBindingParent(this).showPreferences();"/>
132
<xul:button anonid="enable-btn" class="addon-control enable"
133
label="&cmd.enableAddon.label;"
134
oncommand="document.getBindingParent(this).userDisabled = false;"/>
136
<xul:button anonid="disable-btn" class="addon-control disable"
137
label="&cmd.disableAddon.label;"
138
oncommand="document.getBindingParent(this).userDisabled = true;"/>
139
<xul:button anonid="remove-btn" class="addon-control remove"
140
label="&cmd.uninstallAddon.label;"
141
oncommand="document.getBindingParent(this).uninstall();"/>
149
<!-- Datum im kurzen Format ohne Tag am Anfang -->
151
<method name="_updateDates">
153
function formatDate(aDate) {
154
return Cc["@mozilla.org/intl/scriptabledateformat;1"]
155
.getService(Ci.nsIScriptableDateFormat)
157
Ci.nsIScriptableDateFormat.dateFormatShort,
159
aDate.getMonth() + 1,
164
if (this.mAddon.updateDate)
165
this._dateUpdated.value = formatDate(this.mAddon.updateDate);
167
this._dateUpdated.value = this._dateUpdated.getAttribute("unknown");
172
<method name="showInDetailView">
173
<parameter name="aEvent"/>
175
if(this.getAttribute("aiosOpenPrefs")) this.removeAttribute("aiosOpenPrefs");
176
else gViewController.loadView("addons://detail/" + encodeURIComponent(this.mAddon.id));
183
<handler event="click" button="0"><![CDATA[
184
switch (event.detail) {
186
this.setAttribute("aiosOpenPrefs", true);
187
this.showPreferences();
197
<binding id="textlink" extends="chrome://global/content/bindings/text.xml#text-link">
199
<implementation implements="nsIAccessibleProvider">
201
<parameter name="aEvent"/>
204
top.gBrowser.loadOneTab(this.href);
205
aEvent.preventDefault();
b'\\ No newline at end of file'