зеркало из https://github.com/mozilla/pjs.git
Bug 492876: Text description for an add-on doesn't fully use screen real estate, r=gavin
This commit is contained in:
Родитель
98b66d7c42
Коммит
5123763e04
|
@ -110,11 +110,10 @@
|
|||
<xul:label class="normal" xbl:inherits="value=version"/>
|
||||
</xul:hbox>
|
||||
<xul:label class="normal hide-on-select" xbl:inherits="value=description" crop="end" flex="1"/>
|
||||
<xul:hbox class="show-on-select" align="start">
|
||||
<xul:image xbl:inherits="src=thumbnailURL"/>
|
||||
<xul:description class="normal show-on-select" xbl:inherits="xbl:text=description" flex="1"/>
|
||||
</xul:hbox>
|
||||
<xul:description class="normal show-on-select" xbl:inherits="xbl:text=description" flex="1"/>
|
||||
<xul:hbox class="show-on-select">
|
||||
<xul:button class="addon-install hide-on-install hide-on-restart" label="&addonShowPage.label;"
|
||||
oncommand="ExtensionsView.showPage(document.getBindingParent(this));"/>
|
||||
<xul:spacer flex="1"/>
|
||||
<xul:button class="addon-install hide-on-install hide-on-restart" label="&addonInstall.label;"
|
||||
oncommand="ExtensionsView.installFromRepo(document.getBindingParent(this));"/>
|
||||
|
|
|
@ -458,14 +458,22 @@ var ExtensionsView = {
|
|||
continue;
|
||||
|
||||
let listitem = this._createItem(addon, "search");
|
||||
listitem.setAttribute("description", addon.description);
|
||||
listitem.setAttribute("thumbnailURL", addon.thumbnailURL);
|
||||
listitem.setAttribute("description", addon.summary);
|
||||
listitem.setAttribute("homepageURL", addon.homepageURL);
|
||||
listitem.setAttribute("xpiURL", addon.xpiURL);
|
||||
listitem.setAttribute("xpiHash", addon.xpiHash);
|
||||
this._list.appendChild(listitem);
|
||||
}
|
||||
},
|
||||
|
||||
showPage: function ev_showPage(aItem) {
|
||||
let uri = aItem.getAttribute("homepageURL");
|
||||
if (uri) {
|
||||
Browser.addTab(uri, true);
|
||||
BrowserUI.hidePanel();
|
||||
}
|
||||
},
|
||||
|
||||
resetSearch: function ev_resetSearch() {
|
||||
document.getElementById("addons-repo-mode").value = "recommended";
|
||||
this.toggleMode();
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
<!ENTITY addonInstall.label "Install">
|
||||
<!ENTITY addonUninstall.label "Uninstall">
|
||||
<!ENTITY addonCancel.label "Cancel">
|
||||
<!ENTITY addonShowPage.label "Go to Page">
|
||||
|
||||
<!ENTITY downloadsHeader.label "Downloads">
|
||||
<!ENTITY downloadsSortDate.label "Date">
|
||||
|
|
Загрузка…
Ссылка в новой задаче